mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 08:06:34 +02:00
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:
@@ -868,7 +868,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
alen += sprintf(abuf + alen, "%s ", (color == 1) ? col_off : "");
|
||||
alen += sprint_long_canframe(abuf + alen, &cu.fd, view);
|
||||
alen += sprint_long_canframe(abuf + alen, &cu, view);
|
||||
|
||||
if ((view & CANLIB_VIEW_ERROR) && (cu.fd.can_id & CAN_ERR_FLAG)) {
|
||||
alen += sprintf(abuf + alen, "\n\t");
|
||||
|
||||
Reference in New Issue
Block a user