From a55402fe8b969930709c357d6b5f9d84378dec74 Mon Sep 17 00:00:00 2001 From: Alex Groce Date: Sat, 28 Jul 2018 04:48:09 -0700 Subject: [PATCH] fix output problem --- src/lib/Log.c | 4 ++-- src/lib/Stream.c | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/Log.c b/src/lib/Log.c index 9811704..745d9d0 100644 --- a/src/lib/Log.c +++ b/src/lib/Log.c @@ -155,9 +155,9 @@ int vfprintf(FILE *file, const char *format, va_list args) { DeepState_LogStream(DeepState_LogWarning); DeepState_Log(DeepState_LogWarning, "vfprintf with non-stdout/stderr stream follows:"); - DeepState_LogVFormat(DeepState_LogInfo, format, args); + DeepState_LogVFormat(DeepState_LogInfo, format, args); } else { - printf(format, args); + DeepState_LogVFormat(DeepState_LogInfo, format, args); } } diff --git a/src/lib/Stream.c b/src/lib/Stream.c index d4250f2..f6c15c9 100644 --- a/src/lib/Stream.c +++ b/src/lib/Stream.c @@ -563,10 +563,6 @@ static char DeepState_Format[DeepState_StreamSize + 1]; * into a */ void DeepState_StreamVFormat(enum DeepState_LogLevel level, const char *format_, va_list args) { - if (DeepState_UsingLibFuzzer && (level < DeepState_LogCritical)) { - return; // just silence anything less than a critical - } - struct DeepState_VarArgs va; va_copy(va.args, args);