summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-11 00:34:06 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-11 00:34:06 +0200
commitb5936820c7b38aebe02cfc6344a0731979d072a1 (patch)
treed468deb0ccda4678ed0da2c2efb2e4acd1a0a5e4
parent082694b75f0217f1c5b8b89590e5018f6d8b0949 (diff)
logs-show: fix output of log lines lacking comm
-rw-r--r--src/logs-show.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logs-show.c b/src/logs-show.c
index a6220351b6..42d84edbaf 100644
--- a/src/logs-show.c
+++ b/src/logs-show.c
@@ -213,7 +213,8 @@ static int output_short(sd_journal *j, unsigned line, unsigned n_columns, bool s
} else if (comm && shall_print(show_all, comm, comm_len)) {
printf(" %.*s", (int) comm_len, comm);
n += comm_len + 1;
- }
+ } else
+ putchar(' ');
if (pid && shall_print(show_all, pid, pid_len)) {
printf("[%.*s]", (int) pid_len, pid);