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
@@ -835,7 +835,7 @@ int main(int argc, char **argv)
if (verbose > 1)
sprint_long_canframe(abuf, &frame, (verbose > 2) ? CANLIB_VIEW_ASCII : 0);
else
sprint_canframe(abuf, &frame, 1);
sprint_canframe(abuf, (cu_t *)&frame, 1);
printf("%s\n", abuf);
}