asc2log: remove fprint_canframe usage

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
pull/504/head
Oliver Hartkopp 2024-02-27 10:11:17 +01:00
parent c6cc7151b7
commit 8d8d17e25d
1 changed files with 4 additions and 1 deletions

View File

@ -73,6 +73,8 @@ void print_usage(char *prg)
void prframe(FILE *file, struct timeval *tv, int dev, struct canfd_frame *cf, char *extra_info) {
static char abuf[BUFLEN];
fprintf(file, "(%llu.%06llu) ", (unsigned long long)tv->tv_sec, (unsigned long long)tv->tv_usec);
if (dev > 0)
@ -80,7 +82,8 @@ void prframe(FILE *file, struct timeval *tv, int dev, struct canfd_frame *cf, ch
else
fprintf(file, "canX ");
fprint_canframe(file, cf, extra_info, 0);
sprint_canframe(abuf, cf, 0);
fprintf(file, "%s%s", abuf, extra_info);
}
void get_can_id(struct canfd_frame *cf, char *idstring, int base) {