candump: fix formatting of status messages regarding standard output

As remarked by Victor in https://github.com/linux-can/can-utils/issues/150
the output in the case of silent mode has puzzled line feeds.

Reported-by: Victor Cushman <VictorSCushman@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
pull/145/head
Oliver Hartkopp 2019-08-23 19:34:10 +02:00
parent d45f3f46bd
commit 818dacd78f
1 changed files with 2 additions and 2 deletions

View File

@ -638,9 +638,9 @@ int main(int argc, char **argv)
now.tm_sec);
if (silent != SILENT_ON)
printf("\nWarning: console output active while logging!");
fprintf(stderr, "Warning: Console output active while logging!\n");
fprintf(stderr, "\nEnabling Logfile '%s'\n\n", fname);
fprintf(stderr, "Enabling Logfile '%s'\n", fname);
logfile = fopen(fname, "w");
if (!logfile) {