summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Bisch <joseph.bisch@gmail.com>2017-01-16 12:56:33 -0500
committerJoseph Bisch <joseph.bisch@gmail.com>2017-01-16 12:56:33 -0500
commitc8dafe2a76f199f35e24440ca85796454717965e (patch)
tree7c952b8f19ea0a9dccb9c2565626cdcdf48451ab /src
parent6e36ddc6b7cc1b87005743da4e58bd1d3c8182be (diff)
downloadirssi-c8dafe2a76f199f35e24440ca85796454717965e.zip
Add SUPPRESS_PRINTF_FALLBACK
There are some cases (such as fuzzing with fe-fuzz) where suppressing printf output may be desirable.
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/printtext.c2
1 files changed, 2 insertions, 0 deletions
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;
}