mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 16:09:52 +02:00
candump/lib: make sprint_canframe CAN XL aware
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
+1
-1
@@ -418,7 +418,7 @@ int main(int argc, char **argv)
|
||||
|
||||
sprintf(temp, "(%llu.%06llu) %*s ",
|
||||
(unsigned long long)tv.tv_sec, (unsigned long long)tv.tv_usec, max_devname_len, devname[idx]);
|
||||
sprint_canframe(temp+strlen(temp), &frame, 0);
|
||||
sprint_canframe(temp+strlen(temp), (cu_t *)&frame, 0);
|
||||
strcat(temp, "\n");
|
||||
|
||||
if (write(accsocket, temp, strlen(temp)) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user