summarylogtreecommitdiffstats
path: root/logging.patch
diff options
context:
space:
mode:
authorTimo Sarawinski2019-04-01 13:02:44 +0200
committerTimo Sarawinski2019-04-01 13:02:44 +0200
commit9d54d47be8bcf34b8e099194e04c7bbd4355db99 (patch)
treee6ac0bc97b526865c17b7bfb5ef559c3be392ca9 /logging.patch
parent9c09dad8ea91bad9d61425d215418e5c536bff43 (diff)
downloadaur-e4rat.tar.gz
fix build
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