From 3fe0c531c7c1ec6719c42290c8f34d6b381fc690 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 8 Jul 2020 15:26:26 +0200 Subject: executor: clarify debug/debug_verbose use --- executor/executor.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index f9dd22dda..d0b352fc8 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -73,7 +73,11 @@ static NORETURN PRINTF(1, 2) void fail(const char* msg, ...); static NORETURN PRINTF(1, 2) void exitf(const char* msg, ...); static NORETURN void doexit(int status); -// Print debug output, does not add \n at the end of msg as opposed to the previous functions. +// Print debug output that is visible when running syz-manager/execprog with -debug flag. +// Debug output is supposed to be relatively high-level (syscalls executed, return values, timing, etc) +// and is intended mostly for end users. If you need to debug lower-level details, use debug_verbose +// function and temporary enable it in your build by changing #if 0 below. +// This function does not add \n at the end of msg as opposed to the previous functions. static PRINTF(1, 2) void debug(const char* msg, ...); void debug_dump_data(const char* data, int length); -- cgit mrf-deployment