candump/lib: make sprint_canframe CAN XL aware

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
Oliver Hartkopp
2024-02-27 18:23:29 +01:00
parent 57238d5f81
commit 04312e5a10
6 changed files with 88 additions and 44 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ void prframe(FILE *file, struct timeval *tv, int dev, struct canfd_frame *cf, ch
else
fprintf(file, "canX ");
sprint_canframe(abuf, cf, 0);
sprint_canframe(abuf, (cu_t *)cf, 0);
fprintf(file, "%s%s", abuf, extra_info);
}