From 120e26c2fecf4fcabc18af43329171d6afba02b4 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 18 May 2017 19:18:26 +0200 Subject: csourse: don't generate debug printfs --- csource/csource.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'csource/csource.go') diff --git a/csource/csource.go b/csource/csource.go index ae3e54df8..3eeb369dc 100644 --- a/csource/csource.go +++ b/csource/csource.go @@ -37,6 +37,7 @@ type Options struct { UseTmpDir bool HandleSegv bool WaitRepeat bool + Debug bool // Generate code for use with repro package to prints log messages, // which allows to distinguish between a hang and an absent crash. @@ -385,6 +386,9 @@ func preprocessCommonHeader(opts Options, handled map[string]int, useBitmasks bo if opts.WaitRepeat { defines = append(defines, "SYZ_WAIT_REPEAT") } + if opts.Debug { + defines = append(defines, "SYZ_DEBUG") + } for name, _ := range handled { defines = append(defines, "__NR_"+name) } -- cgit mrf-deployment