diff --git a/asc2log.c b/asc2log.c index 483cc91..c8ff5fc 100644 --- a/asc2log.c +++ b/asc2log.c @@ -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); diff --git a/candump.c b/candump.c index 08c73c1..376dafc 100644 --- a/candump.c +++ b/candump.c @@ -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 */ }