diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-06-04 12:59:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-04 13:46:03 +0200 |
commit | a1230ff972a6a5d945749e5280cd092a2aa827dd (patch) | |
tree | f6e7280a3e2162132c1b2df8cfc530105b8e431d /src/basic/log.h | |
parent | 4055a62faffc1ad6318265a674b3eb026ebdf78b (diff) | |
download | systemd-a1230ff972a6a5d945749e5280cd092a2aa827dd.tar.gz systemd-a1230ff972a6a5d945749e5280cd092a2aa827dd.tar.bz2 systemd-a1230ff972a6a5d945749e5280cd092a2aa827dd.zip |
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.h | 2 |
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) \ |