aboutsummaryrefslogtreecommitdiffstats
path: root/sys/syz-sysgen
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-12-20 14:19:12 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-12-20 16:45:34 +0100
commitf83f92fd5e8f53114eb4e4149c19f2c4d7fddc78 (patch)
treeb7bdfc5bdd2ffb3a9f0044e978b8f85946952134 /sys/syz-sysgen
parentae5ed0b14052adc4be0d98e5e8a46a0b0ab2c565 (diff)
tools/syz-check: inject description compilation warnings
Currently we print them as part of `make genereate`, but nobody reads them, too much output each time. Don't print them in `make generate` and instead print in syz-check, the warn files are a good mechanism to handle "known warnings".
Diffstat (limited to 'sys/syz-sysgen')
-rw-r--r--sys/syz-sysgen/sysgen.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/syz-sysgen/sysgen.go b/sys/syz-sysgen/sysgen.go
index c5f2be3d3..254cbf561 100644
--- a/sys/syz-sysgen/sysgen.go
+++ b/sys/syz-sysgen/sysgen.go
@@ -111,6 +111,8 @@ func main() {
job.ArchData = generateExecutorSyscalls(job.Target, prog.Syscalls, rev)
+ // Don't print warnings, they are printed in syz-check.
+ job.Errors = nil
job.OK = true
}()
}
@@ -131,7 +133,6 @@ func main() {
for u := range job.Unsupported {
unsupported[u]++
}
- fmt.Printf("\n")
}
oses = append(oses, OSData{
GOOS: OS,