From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F3A7A0548; Mon, 26 Apr 2021 02:56:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12E1141131; Mon, 26 Apr 2021 02:56:55 +0200 (CEST) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by mails.dpdk.org (Postfix) with ESMTP id CE85F41110 for ; Mon, 26 Apr 2021 02:56:53 +0200 (CEST) Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FT5xP0TFwzNxw6; Mon, 26 Apr 2021 08:53:45 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Mon, 26 Apr 2021 08:56:49 +0800 From: "Min Hu (Connor)" To: CC: , , Date: Mon, 26 Apr 2021 08:56:59 +0800 Message-ID: <1619398619-58601-1-git-send-email-humin29@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1619163776-39125-1-git-send-email-humin29@huawei.com> References: <1619163776-39125-1-git-send-email-humin29@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH v2] app/bbdev: fix wrong variable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The logging should show context by printing the two variable 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: d819c08327f3 ("app/bbdev: update for 5GNR") Cc: stable@dpdk.org Signed-off-by: Min Hu (Connor) Acked-by: Nicolas Chautru --- app/test-bbdev/test_bbdev_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 45b85b9..b8bf512 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -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; } -- 2.7.4