Skip to content

Commit

Permalink
asc2log: remove fprint_canframe usage
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Hartkopp <[email protected]>
  • Loading branch information
hartkopp committed Feb 27, 2024
1 parent c6cc715 commit 8d8d17e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion asc2log.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ 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)
fprintf(file, "can%d ", dev-1);
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) {
Expand Down

0 comments on commit 8d8d17e

Please sign in to comment.