diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/examples/can/can_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/examples/can/can_main.c b/apps/examples/can/can_main.c index a3a2e916a..4e12fcd08 100644 --- a/apps/examples/can/can_main.c +++ b/apps/examples/can/can_main.c @@ -216,12 +216,16 @@ int MAIN_NAME(int argc, char *argv[]) message("ERROR: Data does not match. DLC=%d\n", msgdlc); for (i = 0; i < msgdlc; i++) { - message(" %d: TX %02x RX %02x\n", txmsg.cm_data[i], rxmsg.cm_data[i]); + message(" %d: TX %02x RX %02x\n", i, txmsg.cm_data[i], rxmsg.cm_data[i]); errval = 5; goto errout_with_dev; } } + /* Report success */ + + message(" ID: %4d DLC: %d -- OK\n", msgid, msgdlc); + /* Set up for the next pass */ msgdata += msgdlc; |