diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-10 18:50:44 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-10 19:15:46 +0200 |
| commit | 78178cfb8c749a862d7df2ac09ee66b956565027 (patch) | |
| tree | 18fcf83ab4f030042c675e391cb4c9c1f2d03a36 /pkg | |
| parent | d4c58caef7e5fbae992399cb3b28681694468b39 (diff) | |
tools/syz-linter: fix comments check
Turns out ast.Inspect does not visit most comments.
Walk file.Comments manually.
Update #1876
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/osutil/osutil_linux.go | 2 | ||||
| -rw-r--r-- | pkg/report/fuchsia.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pkg/osutil/osutil_linux.go b/pkg/osutil/osutil_linux.go index 30fa892d8..768620d21 100644 --- a/pkg/osutil/osutil_linux.go +++ b/pkg/osutil/osutil_linux.go @@ -38,7 +38,7 @@ func RemoveAll(dir string) error { func SystemMemorySize() uint64 { var info syscall.Sysinfo_t syscall.Sysinfo(&info) - return uint64(info.Totalram) //nolint:unconvert + return uint64(info.Totalram) // nolint:unconvert } func removeImmutable(fname string) error { diff --git a/pkg/report/fuchsia.go b/pkg/report/fuchsia.go index bed4d8952..e6df94eac 100644 --- a/pkg/report/fuchsia.go +++ b/pkg/report/fuchsia.go @@ -277,9 +277,9 @@ var zirconOopses = append([]*oops{ // We should detect just "stopping other cpus" as some kernel crash rather then as "lost connection", // but if we add oops for "stopping other cpus", then it will interfere with other formats, // because "stopping other cpus" usually goes after "ZIRCON KERNEL PANIC", but sometimes before. Mess. - //{ + // { // []byte("stopping other cpus"), - //}, + // }, { []byte("welcome to Zircon"), []oopsFormat{ |
