diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-28 02:05:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-28 02:18:46 +0100 |
commit | e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1e (patch) | |
tree | 874e0dac2d1426e44c3e748734cbb297f3feefa8 /src/journal/journald-server.c | |
parent | 6c861f0aeff9449ee1201bb56f89861921e41c45 (diff) |
log: fix order of log_unit_struct() to match other logging calls
Also, while we are at it, introduce some syntactic sugar for creating
ERRNO= and MESSAGE= structured logging fields.
Diffstat (limited to 'src/journal/journald-server.c')
-rw-r--r-- | src/journal/journald-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index cd4843c986..4fd2069d81 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -841,7 +841,7 @@ void server_driver_message(Server *s, sd_id128_t message_id, const char *format, IOVEC_SET_STRING(iovec[n++], buffer); if (!sd_id128_equal(message_id, SD_ID128_NULL)) { - snprintf(mid, sizeof(mid), MESSAGE_ID(message_id)); + snprintf(mid, sizeof(mid), LOG_MESSAGE_ID(message_id)); char_array_0(mid); IOVEC_SET_STRING(iovec[n++], mid); } |