From c8dafe2a76f199f35e24440ca85796454717965e Mon Sep 17 00:00:00 2001 From: Joseph Bisch Date: Mon, 16 Jan 2017 12:56:33 -0500 Subject: [PATCH] Add SUPPRESS_PRINTF_FALLBACK There are some cases (such as fuzzing with fe-fuzz) where suppressing printf output may be desirable. --- src/fe-common/core/printtext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c index ba6f3242..01ef2dcd 100644 --- a/src/fe-common/core/printtext.c +++ b/src/fe-common/core/printtext.c @@ -446,7 +446,9 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text) if (dest->window == NULL) { str = strip_codes(text); +#ifndef SUPPRESS_PRINTF_FALLBACK printf("NO WINDOWS: %s\n", str); +#endif g_free(str); return; }