diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-16 01:46:35 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-16 01:46:35 +0200 |
commit | 4f4a1dbf2171aa62da04d2e3b6945e8992139d14 (patch) | |
tree | 71ecaf17792edcf168c01838643d0988bb1d22fe /execute.c | |
parent | 8bfcc8ea65e29b1ebcd3d0fff600fe1638a85ec7 (diff) |
logger: support printk() style priority prefixes
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -187,10 +187,12 @@ static int connect_logger_as(const ExecContext *context, ExecOutput output, cons dprintf(fd, "%s\n" "%i\n" - "%s\n", + "%s\n" + "%i\n", output == EXEC_OUTPUT_KERNEL ? "kmsg" : "syslog", context->syslog_priority, - context->syslog_identifier ? context->syslog_identifier : ident); + context->syslog_identifier ? context->syslog_identifier : ident, + !context->syslog_no_prefix); if (fd != nfd) { r = dup2(fd, nfd) < 0 ? -errno : nfd; |