summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-16 01:46:35 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-16 01:46:35 +0200
commit4f4a1dbf2171aa62da04d2e3b6945e8992139d14 (patch)
tree71ecaf17792edcf168c01838643d0988bb1d22fe /execute.c
parent8bfcc8ea65e29b1ebcd3d0fff600fe1638a85ec7 (diff)
logger: support printk() style priority prefixes
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/execute.c b/execute.c
index a36e52b345..12f514504c 100644
--- a/execute.c
+++ b/execute.c
@@ -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;