]> git.proxmox.com Git - pmg-log-tracker.git/commitdiff
correctly print newlines to separate entries
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 18 Sep 2017 09:50:52 +0000 (11:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 18 Sep 2017 09:50:52 +0000 (11:50 +0200)
pmg-log-tracker.c

index f916e89988289da108a41e8842fa8c899aab3ddc..affab69dfe59f32257203a54da81efd47ac4cd64 100644 (file)
@@ -800,12 +800,15 @@ sentry_print (LParser *parser, SEntry *sentry)
     nq = nq->next;
   }
 
+  if (!parser->verbose)  { fflush (stdout); return; }
+
   if (parser->verbose > 1) {
     printf ("LOGS:\n");
     loglist_print (&sentry->loglist);
-    printf ("\n");
   }
 
+  printf ("\n");
+
   fflush (stdout);
 }