mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
cansequence: print counter received data as hex
In the CAN universe, most data is displayed in hex. Change the verbose output to hex, to ease debugging.
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ static void do_receive()
|
||||
sequence = sequence_rx;
|
||||
overflow_old = overflow;
|
||||
} else if (verbose > 1) {
|
||||
printf("sequence CNT: %6u, RX: %6u\n", sequence, sequence_rx);
|
||||
printf("sequence CNT: 0x%07x RX: 0x%02x\n", sequence, sequence_rx);
|
||||
}
|
||||
|
||||
sequence++;
|
||||
|
||||
Reference in New Issue
Block a user