From 78178cfb8c749a862d7df2ac09ee66b956565027 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 10 Jul 2020 18:50:44 +0200 Subject: tools/syz-linter: fix comments check Turns out ast.Inspect does not visit most comments. Walk file.Comments manually. Update #1876 --- pkg/osutil/osutil_linux.go | 2 +- pkg/report/fuchsia.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg') 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{ -- cgit mrf-deployment