diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-10-10 15:36:57 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-10-10 15:36:57 +0200 |
| commit | fefd83bf0b0fd1c471be79b86259c011e4e76b92 (patch) | |
| tree | d0f1303b517f7d1a74920f30eda3c418d03c6dd8 /tools | |
| parent | adedaf77a18f3d03d695723c86fc083c3551ff5b (diff) | |
tools/syz-execprog: show host features
syz-execprog -output is handy way to check what features host.Check detects.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-execprog/execprog.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index bfdd96bb9..1a42a8279 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -59,6 +59,11 @@ func main() { if err != nil { log.Fatalf("%v", err) } + if *flagOutput { + for _, feat := range features { + log.Logf(0, "%-24v: %v", feat.Name, feat.Reason) + } + } if _, err = host.Setup(target, features); err != nil { log.Fatalf("%v", err) } |
