aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-02-28 01:04:33 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-02-28 01:04:33 +0100
commit49600a082b5f906c95c9fb864e59dc7506691b79 (patch)
tree45c7168b1210041575f02226bb6faf44d79128ab
parent0fb4a3cb349d49eeb431b4fb29bce63e456a1e20 (diff)
downloadjson-rpc-shell-49600a082b5f906c95c9fb864e59dc7506691b79.tar.gz
json-rpc-shell-49600a082b5f906c95c9fb864e59dc7506691b79.tar.xz
json-rpc-shell-49600a082b5f906c95c9fb864e59dc7506691b79.zip
Fix the silliest of issues in utils.c
-rw-r--r--utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 7a7392b..600a33b 100644
--- a/utils.c
+++ b/utils.c
@@ -129,10 +129,14 @@ log_message (void *user_data, const char *quote, const char *fmt, ...)
static bool g_debug_mode; ///< Debug messages are printed
static bool g_soft_asserts_are_deadly; ///< soft_assert() aborts as well
+#ifndef print_debug_data
+#define print_debug_data NULL
+#endif
+
#define print_debug(...) \
BLOCK_START \
if (g_debug_mode) \
- log_message ("debug: ", __VA_ARGS__); \
+ log_message (print_debug_data, "debug: ", __VA_ARGS__); \
BLOCK_END
static void