summaryrefslogtreecommitdiff
path: root/src/basic/log.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-04 12:59:22 +0200
committerLennart Poettering <lennart@poettering.net>2018-06-04 13:46:03 +0200
commita1230ff972a6a5d945749e5280cd092a2aa827dd (patch)
treef6e7280a3e2162132c1b2df8cfc530105b8e431d /src/basic/log.h
parent4055a62faffc1ad6318265a674b3eb026ebdf78b (diff)
downloadsystemd-a1230ff972a6a5d945749e5280cd092a2aa827dd.tar.gz
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 ;)
Diffstat (limited to 'src/basic/log.h')
-rw-r--r--src/basic/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/log.h b/src/basic/log.h
index 6a8cf6375f..3f56ec68a6 100644
--- a/src/basic/log.h
+++ b/src/basic/log.h
@@ -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) \