summarylogtreecommitdiffstats
path: root/logging.patch
diff options
context:
space:
mode:
Diffstat (limited to 'logging.patch')
-rw-r--r--logging.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/logging.patch b/logging.patch
new file mode 100644
index 00000000000..f844e63e95c
--- /dev/null
+++ b/logging.patch
@@ -0,0 +1,11 @@
+--- src/logging.hh
++++ src/logging.hh
+@@ -93,7 +93,7 @@
+ #define dump_log(...) logger.write(__VA_ARGS__)
+
+ #ifdef DEBUG_ENABLED
+- #define debug(format,args...) dump_log(Debug, "%s:%d in %s(): "format, __FILE__, __LINE__, __FUNCTION__, ## args)
++ #define debug(format, ...) logger.write(Debug, "%s:%d in %s(): " format, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)
+ #else
+ #define debug(format,args...)
+ #endif