From: Lennart Poettering Date: Tue, 10 Apr 2012 22:34:06 +0000 (+0200) Subject: logs-show: fix output of log lines lacking comm X-Git-Tag: v183~408 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5936820c7b38aebe02cfc6344a0731979d072a1;p=systemd logs-show: fix output of log lines lacking comm --- diff --git a/src/logs-show.c b/src/logs-show.c index a6220351..42d84edb 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);