diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-01 03:36:11 +0300 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-01 03:36:11 +0300 |
commit | b6fa25552e538eca207072e12d223e3523b21a19 (patch) | |
tree | 1fc6db5ac475d416babe55217eb853b0fd1b2ed9 /src | |
parent | 8abf5291564e771bfc62c74a55ab3f3b56f45257 (diff) |
journald: add syslog fields for driver messages
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journald-server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index fa2e9b9825..04081c3c2e 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -825,7 +825,7 @@ static void dispatch_message_real( void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) { char mid[11 + 32 + 1]; char buffer[16 + LINE_MAX + 1]; - struct iovec iovec[N_IOVEC_META_FIELDS + 4]; + struct iovec iovec[N_IOVEC_META_FIELDS + 6]; int n = 0; va_list ap; struct ucred ucred = {}; @@ -833,6 +833,9 @@ void server_driver_message(Server *s, sd_id128_t message_id, const char *format, assert(s); assert(format); + IOVEC_SET_STRING(iovec[n++], "SYSLOG_FACILITY=3"); + IOVEC_SET_STRING(iovec[n++], "SYSLOG_IDENTIFIER=systemd-journald"); + IOVEC_SET_STRING(iovec[n++], "PRIORITY=6"); IOVEC_SET_STRING(iovec[n++], "_TRANSPORT=driver"); |