diff --git a/src/lib/Log.c b/src/lib/Log.c index e0095e1..efe9287 100644 --- a/src/lib/Log.c +++ b/src/lib/Log.c @@ -170,14 +170,14 @@ int vfprintf(FILE *file, const char *format, va_list args) { } else if (stdout == file) { DeepState_LogVFormat(DeepState_LogInfo, format, args); } else { -#ifndef LIBFUZZER - DeepState_LogStream(DeepState_LogWarning); - DeepState_Log(DeepState_LogWarning, - "vfprintf with non-stdout/stderr stream follows:"); - DeepState_LogVFormat(DeepState_LogInfo, format, args); -#else - DeepState_LogVFormat(DeepState_LogFuzzer, format, args); -#endif + if (!DeepState_UsingLibFuzzer) { + DeepState_LogStream(DeepState_LogWarning); + DeepState_Log(DeepState_LogWarning, + "vfprintf with non-stdout/stderr stream follows:"); + DeepState_LogVFormat(DeepState_LogInfo, format, args); + } else { + DeepState_LogVFormat(DeepState_LogFuzzer, format, args); + } } return 0; }