Merge pull request #566 from marckleinebudde/canfdtest

canfdtest: compare_frame: add 0x prefix to indicate hex value
pull/568/head
Marc Kleine-Budde 2024-12-11 11:03:12 +01:00 committed by GitHub
commit 06561ac3dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ static int compare_frame(const struct canfd_frame *exp, const struct canfd_frame
} else { } else {
for (i = 0; i < rec->len; i++) { for (i = 0; i < rec->len; i++) {
if (rec->data[i] != (uint8_t)(exp->data[i] + inc)) { 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, print_compare(expected_can_id, exp->data, exp->len,
rec->can_id, rec->data, rec->len, inc); rec->can_id, rec->data, rec->len, inc);
running = 0; running = 0;