basic/log: add the log_struct terminator to macro
This way all callers do not need to specify it. Exhaustively tested by running test-log under valgrind ;)
This commit is contained in:
committed by
Lennart Poettering
parent
4055a62faf
commit
a1230ff972
+1
-1
@@ -245,7 +245,7 @@ int log_emergency_level(void);
|
||||
/* Structured logging */
|
||||
#define log_struct_errno(level, error, ...) \
|
||||
log_struct_internal(LOG_REALM_PLUS_LEVEL(LOG_REALM, level), \
|
||||
error, __FILE__, __LINE__, __func__, __VA_ARGS__)
|
||||
error, __FILE__, __LINE__, __func__, __VA_ARGS__, NULL)
|
||||
#define log_struct(level, ...) log_struct_errno(level, 0, __VA_ARGS__)
|
||||
|
||||
#define log_struct_iovec_errno(level, error, iovec, n_iovec) \
|
||||
|
||||
Reference in New Issue
Block a user