aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-10-11 14:56:16 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-10-12 15:25:31 +0200
commit6e0b5a7b21511f4ad998e5ba8e583fbb190fe47b (patch)
tree3c15e5ddfafcb80daca6ced97539a5a8d286c98c /pkg
parent607ad2b370822491f074f06a4e751c23cfefce05 (diff)
pkg/host: log executor setup output
Executor prints what's failed during setup command. Log this output so that it's visible in syz-execprog/fuzzer output.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/host/features.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/host/features.go b/pkg/host/features.go
index 8be2d4a22..f3f4af30c 100644
--- a/pkg/host/features.go
+++ b/pkg/host/features.go
@@ -9,6 +9,7 @@ import (
"time"
"github.com/google/syzkaller/pkg/csource"
+ "github.com/google/syzkaller/pkg/log"
"github.com/google/syzkaller/pkg/osutil"
"github.com/google/syzkaller/prog"
"github.com/google/syzkaller/sys/targets"
@@ -120,7 +121,8 @@ func Setup(target *prog.Target, features *Features, featureFlags csource.Feature
if featureFlags["ieee802154"].Enabled && features[Feature802154Emulation].Enabled {
args = append(args, "802154")
}
- _, err := osutil.RunCmd(5*time.Minute, "", executor, args...)
+ output, err := osutil.RunCmd(5*time.Minute, "", executor, args...)
+ log.Logf(1, "executor %v\n%s", args, output)
return err
}