diff common/debug.h @ 228:19de529ce7fb

Moved debug prefix to macro and added component specific prefix.
author Sascha Wilde <wilde@intevation.de>
date Thu, 27 Mar 2014 18:31:26 +0100
parents 29467940b07b
children 92b1e5ed2d5f
line wrap: on
line diff
--- a/common/debug.h	Thu Mar 27 18:24:08 2014 +0100
+++ b/common/debug.h	Thu Mar 27 18:31:26 2014 +0100
@@ -12,7 +12,7 @@
  * Prints to stderr if RELEASE_BUILD is not defined.
  */
 #ifndef RELEASE_BUILD
-#define DEBUGPRINTF(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__);
+#define DEBUGPRINTF(fmt, ...) fprintf(stderr, DEBUGPREFIX "DEBUG: " fmt, ##__VA_ARGS__);
 #else
 #define DEBUGPRINTF(fmt, ...)
 #endif

http://wald.intevation.org/projects/trustbridge/