Skip to content

Commit

Permalink
app/bbdev: fix HARQ error messages
Browse files Browse the repository at this point in the history
[ upstream commit 49ca9e5 ]

The logging should show context by printing the two variables which
compared to each other. 'nb_harq_inputs', not 'nb_hard_outputs';
'nb_harq_outputs', not 'nb_hard_outputs'.

This patch corrected misused variable.

Fixes: d819c08 ("app/bbdev: update for 5GNR")

Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Nicolas Chautru <nicolas.chautru@intel.com>
  • Loading branch information
hushenggitcount authored and steevenlee committed Jun 8, 2021
1 parent 90ca87d commit 6856433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/test-bbdev/test_bbdev_perf.c
Expand Up @@ -372,14 +372,14 @@ check_dev_cap(const struct rte_bbdev_info *dev_info)
if (nb_harq_inputs > cap->num_buffers_hard_out) {
printf(
"Too many HARQ inputs defined: %u, max: %u\n",
nb_hard_outputs,
nb_harq_inputs,
cap->num_buffers_hard_out);
return TEST_FAILED;
}
if (nb_harq_outputs > cap->num_buffers_hard_out) {
printf(
"Too many HARQ outputs defined: %u, max: %u\n",
nb_hard_outputs,
nb_harq_outputs,
cap->num_buffers_hard_out);
return TEST_FAILED;
}
Expand Down

0 comments on commit 6856433

Please sign in to comment.