diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-12-16 14:21:05 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-12-25 10:12:41 +0100 |
| commit | 55adcb8ca0ca0b7185e917ece137fae218365c89 (patch) | |
| tree | 58b8661c65496f0a3fa2e7824bf1ebbc97c6d275 /tools/syz-check | |
| parent | 257f4cb9050d29a38a992b814bd6e79e6f1bca99 (diff) | |
all: use tool.Failf instead of local functions
Diffstat (limited to 'tools/syz-check')
| -rw-r--r-- | tools/syz-check/check.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index 5961cb6e8..41c9c6b10 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -55,10 +55,6 @@ func main() { for arch := range targets.List[targets.Linux] { arches[arch] = flag.String("obj-"+arch, "", arch+" kernel object file") } - failf := func(msg string, args ...interface{}) { - fmt.Fprintf(os.Stderr, msg+"\n", args...) - os.Exit(1) - } defer tool.Init()() var warnings []Warn for arch, obj := range arches { @@ -68,7 +64,7 @@ func main() { } warnings1, err := check(*flagOS, arch, *obj, *flagDWARF, *flagNetlink) if err != nil { - failf("%v", err) + tool.Fail(err) } warnings = append(warnings, warnings1...) runtime.GC() |
