Skip to content

Commit

Permalink
Merge pull request #566 from marckleinebudde/canfdtest
Browse files Browse the repository at this point in the history
canfdtest: compare_frame: add 0x prefix to indicate hex value
  • Loading branch information
marckleinebudde authored Dec 11, 2024
2 parents 72f236e + 7093a73 commit 06561ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canfdtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int compare_frame(const struct canfd_frame *exp, const struct canfd_frame
} else {
for (i = 0; i < rec->len; i++) {
if (rec->data[i] != (uint8_t)(exp->data[i] + inc)) {
printf("Databyte %x mismatch!\n", i);
printf("Databyte 0x%x mismatch!\n", i);
print_compare(expected_can_id, exp->data, exp->len,
rec->can_id, rec->data, rec->len, inc);
running = 0;
Expand Down

0 comments on commit 06561ac

Please sign in to comment.