From 48e10c9c57026d5bb1ef3b8c22ed67c3471f4ccb Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Tue, 27 Feb 2024 11:04:42 +0100 Subject: [PATCH] canplayer: remove fprint_long_canframe usage Signed-off-by: Oliver Hartkopp --- canplayer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/canplayer.c b/canplayer.c index 1f2d6cc..bd93740 100644 --- a/canplayer.c +++ b/canplayer.c @@ -485,8 +485,11 @@ int main(int argc, char **argv) } if (verbose) { + static char abuf[10000]; /* ASCII buf FIXME - use calculated value */ + 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))