1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

journal: when dumping log data with missing COMM fields, show "unknown" instead

A small readability improvement...
This commit is contained in:
Lennart Poettering 2014-11-04 00:28:33 +01:00
parent 5034c7bcdf
commit 1248e84008

View File

@ -365,7 +365,7 @@ static int output_short(
fprintf(f, " %.*s", (int) comm_len, comm);
n += comm_len + 1;
} else
fputc(' ', f);
fputs(" unknown", f);
if (pid && shall_print(pid, pid_len, flags)) {
fprintf(f, "[%.*s]", (int) pid_len, pid);