aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-10 18:50:44 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-10 19:15:46 +0200
commit78178cfb8c749a862d7df2ac09ee66b956565027 (patch)
tree18fcf83ab4f030042c675e391cb4c9c1f2d03a36 /pkg
parentd4c58caef7e5fbae992399cb3b28681694468b39 (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.go2
-rw-r--r--pkg/report/fuchsia.go4
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{