diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-08 15:26:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-08 15:56:59 +0200 |
| commit | 3fe0c531c7c1ec6719c42290c8f34d6b381fc690 (patch) | |
| tree | 61261640599c0a74c9e4ace7e7193bcb8109821a /executor/executor.cc | |
| parent | f5b4cca65c5bad8a1e55d9b3b06f1c55f6d69887 (diff) | |
executor: clarify debug/debug_verbose use
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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); |
