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 05d22d4e061a3ac92cb8f076c5ecaed653d4f640 ]

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 cpaelzer committed Nov 11, 2022
1 parent f129369 commit 7bb8064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/event/sw/sw_evdev_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1634,8 +1634,8 @@ xstats_id_reset_tests(struct test *t)
}
if (val != port_expected[i]) {
printf("%d: %s value incorrect, expected %"PRIu64
" got %d\n", __LINE__, port_names[i],
port_expected[i], id);
" got %"PRIu64"\n", __LINE__, port_names[i],
port_expected[i], val);
failed = 1;
}
/* reset to zero */
Expand Down

0 comments on commit 7bb8064

Please sign in to comment.