aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-31 12:16:54 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-31 12:16:54 +0200
commitf5d67fbd9c633bd2e0e815ada0a8dea352ea42d4 (patch)
treef38c9fb5ab5c6f2b0b003ee20fe13bed7ea41900 /pkg/report/linux.go
parentb8bd991ee2f77d225913d41c57b9a420b4559900 (diff)
.gometalinter.json: enable gofmt
The part that we want from gofmt is simplify (-s). Fix all code that needs fixing. Update #538
Diffstat (limited to 'pkg/report/linux.go')
-rw-r--r--pkg/report/linux.go28
1 files changed, 14 insertions, 14 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index 7e85102d2..395ff6d83 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -591,7 +591,7 @@ func warningStackFmt(skip ...string) *stackFmt {
}
var linuxOopses = []*oops{
- &oops{
+ {
[]byte("BUG:"),
[]oopsFormat{
{
@@ -785,7 +785,7 @@ var linuxOopses = []*oops{
compile("BUG: no syscalls can create resource"),
},
},
- &oops{
+ {
[]byte("WARNING:"),
[]oopsFormat{
{
@@ -909,7 +909,7 @@ var linuxOopses = []*oops{
compile("WARNING: /etc/ssh/moduli does not exist, using fixed modulus"), // printed by sshd
},
},
- &oops{
+ {
[]byte("INFO:"),
[]oopsFormat{
{
@@ -1012,7 +1012,7 @@ var linuxOopses = []*oops{
compile("INFO: no syscalls can create resource"), // pkg/host output in debug mode
},
},
- &oops{
+ {
[]byte("Unable to handle kernel paging request"),
[]oopsFormat{
{
@@ -1023,7 +1023,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("general protection fault:"),
[]oopsFormat{
{
@@ -1040,7 +1040,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("Kernel panic"),
[]oopsFormat{
{
@@ -1078,7 +1078,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("kernel BUG"),
[]oopsFormat{
{
@@ -1104,7 +1104,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("Kernel BUG"),
[]oopsFormat{
{
@@ -1114,7 +1114,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("BUG kmalloc-"),
[]oopsFormat{
{
@@ -1124,7 +1124,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("divide error:"),
[]oopsFormat{
{
@@ -1135,7 +1135,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("invalid opcode:"),
[]oopsFormat{
{
@@ -1146,7 +1146,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("UBSAN:"),
[]oopsFormat{
{
@@ -1156,7 +1156,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("Booting the kernel."),
[]oopsFormat{
{
@@ -1167,7 +1167,7 @@ var linuxOopses = []*oops{
},
[]*regexp.Regexp{},
},
- &oops{
+ {
[]byte("unregister_netdevice: waiting for"),
[]oopsFormat{
{