candump/lib: make sprint_long_canframe CAN XL aware

The 'long' CAN frame representation does not really fit for CAN XL content.
Therefore just a cropped output is provided to be able to see the CAN XL
header information and up to 64 byte of data (without binary or swap
formating options). To get the full qualified CAN XL content use the log
file format.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
Oliver Hartkopp
2024-02-27 20:11:46 +01:00
parent 04312e5a10
commit 3644a54d5b
6 changed files with 68 additions and 31 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ int sprint_canframe(char *buf , cu_t *cu, int sep);
#define SWAP_DELIMITER '`'
int sprint_long_canframe(char *buf , struct canfd_frame *cf, int view);
int sprint_long_canframe(char *buf , cu_t *cu, int view);
/*
* Creates a CAN frame hexadecimal output in user readable format.
*