canplayer: remove fprint_long_canframe usage

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
pull/504/head
Oliver Hartkopp 2024-02-27 11:04:42 +01:00
parent 9d900f913c
commit 48e10c9c57
1 changed files with 4 additions and 1 deletions

View File

@ -485,8 +485,11 @@ int main(int argc, char **argv)
} }
if (verbose) { if (verbose) {
static char abuf[10000]; /* ASCII buf FIXME - use calculated value */
printf("%s (%s) ", get_txname(device), device); printf("%s (%s) ", get_txname(device), device);
fprint_long_canframe(stdout, &frame, "\n", CANLIB_VIEW_INDENT_SFF); sprint_long_canframe(abuf, &frame, CANLIB_VIEW_INDENT_SFF);
printf("%s\n", abuf);
} }
if (count && (--count == 0)) if (count && (--count == 0))