aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-check
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-21 18:19:14 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-21 18:22:54 +0200
commit5afa2ddd5aa721e6eea3e51e2f5ed238479eec86 (patch)
treefdf40ce67ca193671c8675d7f36800d42b2adb3f /tools/syz-check
parent4db3f9927f5ff6d5d1fd72a20ee81a1eea18f698 (diff)
tools/syz-check: fix path calculation
pkg/ast now gives full file name in Pos.
Diffstat (limited to 'tools/syz-check')
-rw-r--r--tools/syz-check/check.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go
index 49152f481..29f88093a 100644
--- a/tools/syz-check/check.go
+++ b/tools/syz-check/check.go
@@ -185,7 +185,7 @@ func writeWarnings(OS string, narches int, warnings []Warn) error {
}
fmt.Fprintf(buf, "%v: %v%v\n", warn.typ, warn.msg, archStr)
}
- warnFile := filepath.Join("sys", OS, file+".warn")
+ warnFile := file + ".warn"
if err := osutil.WriteFile(warnFile, buf.Bytes()); err != nil {
return err
}