Formatter correction and replicated changes to stdout

pull/213/head
Pallavi Revanna 2020-06-02 12:46:43 -07:00
parent 3125b3a975
commit 5e7261e0a7
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ void prframe(FILE *file, struct timeval *tv, int dev, struct canfd_frame *cf, un
fprintf(file, "canX ");
sprint_canframe(buf, cf, 0, max_dlen);
fprintf(file, "%-25s ", buf);
fprintf(file, "%s ", buf);
fprintf(file, "%s \n", msgdir);

View File

@ -706,7 +706,7 @@ int main(int argc, char **argv)
/* log CAN frame with absolute timestamp & device */
sprint_canframe(buf, &frame, 0, maxdlen);
fprintf(logfile, "(%010ld.%06ld) %*s %-25s %s\n",
fprintf(logfile, "(%010ld.%06ld) %*s %s %s\n",
tv.tv_sec, tv.tv_usec,
max_devname_len, devname[idx], buf, (msg.msg_flags & MSG_DONTROUTE)?"Tx":"Rx");
}
@ -716,9 +716,9 @@ int main(int argc, char **argv)
/* print CAN frame in log file style to stdout */
sprint_canframe(buf, &frame, 0, maxdlen);
printf("(%010ld.%06ld) %*s %s\n",
printf("(%010ld.%06ld) %*s %s %s\n",
tv.tv_sec, tv.tv_usec,
max_devname_len, devname[idx], buf);
max_devname_len, devname[idx], buf, (msg.msg_flags & MSG_DONTROUTE)?"Tx":"Rx");
goto out_fflush; /* no other output to stdout */
}