Skip to content

Commit

Permalink
event/sw: fix log in self test
Browse files Browse the repository at this point in the history
[ upstream commit 05d22d4 ]

The log should display the value, not the ID.

Fixes: e21df4b ("test/eventdev: add SW xstats tests")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
  • Loading branch information
olivier-matz-6wind authored and kevintraynor committed Nov 1, 2022
1 parent 14a1303 commit 050edd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/event/sw/sw_evdev_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1642,9 +1642,9 @@ xstats_id_reset_tests(struct test *t)
failed = 1;
}
if (val != port_expected[i]) {
printf("%d: %s value incorrect, expected %"PRIu64
" got %d\n", __LINE__, port_names[i],
port_expected[i], id);
printf("%d: %s value incorrect, expected %" PRIu64
" got %" PRIu64 "\n",
__LINE__, port_names[i], port_expected[i], val);
failed = 1;
}
/* reset to zero */
Expand Down

0 comments on commit 050edd6

Please sign in to comment.