From eb3b1ec5f1ccdeccae237fa8c8662e795bb7fad7 Mon Sep 17 00:00:00 2001 From: Jerzi Kaminsky Date: Sun, 16 Apr 2017 10:30:17 +0300 Subject: Fix variadic forwarding in sway_assert _sway_assert is a variadic function which tries to delegate to another variadic function. This requires a vprintf-style variant of the delegate. https://stackoverflow.com/a/150616 --- include/log.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/log.h') diff --git a/include/log.h b/include/log.h index 2c4150e4..60b3763b 100644 --- a/include/log.h +++ b/include/log.h @@ -28,6 +28,9 @@ void _sway_log(const char *filename, int line, log_importance_t verbosity, const #define sway_log(VERBOSITY, FMT, ...) \ _sway_log(__FILE__, __LINE__, VERBOSITY, FMT, ##__VA_ARGS__) +#define sway_vlog(VERBOSITY, FMT, VA_ARGS) \ + _sway_vlog(__FILE__, __LINE__, VERBOSITY, FMT, VA_ARGS) + void error_handler(int sig); #endif -- cgit v1.2.3-54-g00ecf