mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-04 22:09:57 +02:00
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>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user