cansequence: print error frames in hex

Fixes: faad20983348 ("cansequence: receive snd show error frames")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/254/head^2
Marc Kleine-Budde 2019-11-22 22:06:20 +01:00
parent 00134246c2
commit 2afcbd2fee
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ static void do_receive()
if (frame.can_id & CAN_ERR_FLAG) { if (frame.can_id & CAN_ERR_FLAG) {
fprintf(stderr, fprintf(stderr,
"sequence CNT: %6u, ERRORFRAME %7x %02u %02u %02u %02u %02u %02u %02u %02u\n", "sequence CNT: %6u, ERRORFRAME %7x %02x %02x %02x %02x %02x %02x %02x %02x\n",
sequence, frame.can_id, sequence, frame.can_id,
frame.data[0], frame.data[1], frame.data[2], frame.data[3], frame.data[0], frame.data[1], frame.data[2], frame.data[3],
frame.data[4], frame.data[5], frame.data[6], frame.data[7]); frame.data[4], frame.data[5], frame.data[6], frame.data[7]);