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
parent
d45f3f46bd
commit
818dacd78f
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue