chiark / gitweb /
journal: when dumping log data with missing COMM fields, show "unknown" instead
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Nov 2014 23:28:33 +0000 (00:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Nov 2014 23:28:33 +0000 (00:28 +0100)
A small readability improvement...

src/shared/logs-show.c

index 04e1165..e33824b 100644 (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);