aboutsummaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-01 00:19:56 +0000
committerKenny Levinsen <kl@kl.wtf>2020-08-01 16:53:44 +0200
commit956a378adb63292ce586d124c8aed959e6056a5b (patch)
tree1742aa533531c62ffd5885c9b24e79163c35b4ac /include/log.h
parentc5c036531c6c0a145da63253faa2fba96a5a0e23 (diff)
log: Avoid unnecessary GNU extension
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/log.h b/include/log.h
index 18a573e..e916446 100644
--- a/include/log.h
+++ b/include/log.h
@@ -24,14 +24,14 @@ void _libseat_logf(enum libseat_log_level level, const char *fmt, ...) ATTRIB_PR
#define log_infof(fmt, ...) \
_libseat_logf(LIBSEAT_INFO, "[%s:%d] %s: " fmt, _LIBSEAT_FILENAME, __LINE__, __func__, \
- ##__VA_ARGS__)
+ __VA_ARGS__)
#define log_info(str) \
_libseat_logf(LIBSEAT_INFO, "[%s:%d] %s: %s", _LIBSEAT_FILENAME, __LINE__, __func__, str)
#define log_errorf(fmt, ...) \
_libseat_logf(LIBSEAT_ERROR, "[%s:%d] %s: " fmt, _LIBSEAT_FILENAME, __LINE__, __func__, \
- ##__VA_ARGS__)
+ __VA_ARGS__)
#define log_error(str) \
_libseat_logf(LIBSEAT_ERROR, "[%s:%d] %s: %s", _LIBSEAT_FILENAME, __LINE__, __func__, str)
@@ -39,7 +39,7 @@ void _libseat_logf(enum libseat_log_level level, const char *fmt, ...) ATTRIB_PR
#ifdef DEBUG
#define log_debugf(fmt, ...) \
_libseat_logf(LIBSEAT_DEBUG, "[%s:%d] %s: " fmt, _LIBSEAT_FILENAME, __LINE__, __func__, \
- ##__VA_ARGS__)
+ __VA_ARGS__)
#define log_debug(str) \
_libseat_logf(LIBSEAT_DEBUG, "[%s:%d] %s: %s", _LIBSEAT_FILENAME, __LINE__, __func__, str)