aboutsummaryrefslogtreecommitdiff
path: root/src/logging
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2020-02-07 16:29:07 +0000
committerfanquake <fanquake@gmail.com>2020-04-30 18:02:04 +0800
commit3a0fd7726b8b916de6cce33bb67f48990575f923 (patch)
treec6190675f2d12ddd9fc753163d60e78638e2c5c7 /src/logging
parent49f6178c3e5e3ad54a419da9d8523207da17fc64 (diff)
downloadbitcoin-3a0fd7726b8b916de6cce33bb67f48990575f923.tar.xz
Remove use of non-standard zero variadic macros
These are a gnu extension warned against by: gnu-zero-variadic-macro-arguments
Diffstat (limited to 'src/logging')
-rw-r--r--src/logging/timer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/logging/timer.h b/src/logging/timer.h
index 7094098802..159920e397 100644
--- a/src/logging/timer.h
+++ b/src/logging/timer.h
@@ -93,10 +93,10 @@ private:
} // namespace BCLog
-#define LOG_TIME_MILLIS(end_msg, ...) \
- BCLog::Timer<std::chrono::milliseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)
-#define LOG_TIME_SECONDS(end_msg, ...) \
- BCLog::Timer<std::chrono::seconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)
+#define LOG_TIME_MILLIS_WITH_CATEGORY(end_msg, log_category) \
+ BCLog::Timer<std::chrono::milliseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, log_category)
+#define LOG_TIME_SECONDS(end_msg) \
+ BCLog::Timer<std::chrono::seconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg)
#endif // BITCOIN_LOGGING_TIMER_H