From 0d8837f13b0a5557dbe449ba4b9898341ef52a05 Mon Sep 17 00:00:00 2001 From: Jorge Arellano Cid Date: Sat, 10 Jan 2009 21:37:17 -0300 Subject: Set debug macro MSG var in datauri and https dpis (controlled by SILENT define) --- dpi/datauri.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dpi/datauri.c') diff --git a/dpi/datauri.c b/dpi/datauri.c index 5f3c79a7..0165eba4 100644 --- a/dpi/datauri.c +++ b/dpi/datauri.c @@ -22,8 +22,13 @@ /* * Debugging macros */ +#define SILENT 1 #define _MSG(...) -#define MSG(...) printf("[datauri dpi]: " __VA_ARGS__) +#if SILENT + #define MSG(...) +#else + #define MSG(...) fprintf(stderr, "[datauri dpi]: " __VA_ARGS__) +#endif /* * Global variables -- cgit v1.2.3