aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-execprog
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-06-29 16:33:07 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-06-29 16:33:07 +0200
commit9dd8cf63e09242d6e3fcf84628f412585fccf057 (patch)
treef9d6088fc2e6233bb04b12926e1baad7aed52950 /tools/syz-execprog
parent9efa2eab698f83f1f3ed7df14af83c28c002bca7 (diff)
executor, pkg/ipc: support output over pipes
Diffstat (limited to 'tools/syz-execprog')
-rw-r--r--tools/syz-execprog/execprog.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go
index 8fc0a4aa1..d6b9822fe 100644
--- a/tools/syz-execprog/execprog.go
+++ b/tools/syz-execprog/execprog.go
@@ -131,8 +131,10 @@ func main() {
failed, hanged, err, output)
}
if len(info) != 0 {
- log.Logf(1, "RESULT: signal %v, coverage %v errno %v",
- len(info[0].Signal), len(info[0].Cover), info[0].Errno)
+ for i, inf := range info {
+ log.Logf(1, "CALL %v: signal %v, coverage %v errno %v",
+ i, len(inf.Signal), len(inf.Cover), inf.Errno)
+ }
} else {
log.Logf(1, "RESULT: no calls executed")
}