From patchwork Wed Jul 15 20:20:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 74134 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1CABAA0543; Wed, 15 Jul 2020 22:20:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 597042C58; Wed, 15 Jul 2020 22:20:23 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 662C92BF3 for ; Wed, 15 Jul 2020 22:20:22 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B400031B; Wed, 15 Jul 2020 13:20:21 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AC1593F718; Wed, 15 Jul 2020 13:20:21 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org, honnappa.nagarahalli@arm.com, david.marchand@redhat.com, l.wojciechow@partner.samsung.com, aconole@redhat.com Cc: nd@arm.com Date: Wed, 15 Jul 2020 15:20:06 -0500 Message-Id: <20200715202006.19781-1-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] eal: change the log level for test assert macro X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Change the log level for RTE_TEST_ASSERT macro to error to help log errors while running test cases. Signed-off-by: Honnappa Nagarahalli Acked-by: Aaron Conole Acked-by: Lukasz Wojciechowski --- lib/librte_eal/include/rte_test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/include/rte_test.h b/lib/librte_eal/include/rte_test.h index 89e47f47a..62c8f165a 100644 --- a/lib/librte_eal/include/rte_test.h +++ b/lib/librte_eal/include/rte_test.h @@ -18,7 +18,7 @@ #define RTE_TEST_ASSERT(cond, msg, ...) do { \ if (!(cond)) { \ - RTE_LOG(DEBUG, EAL, "Test assert %s line %d failed: " \ + RTE_LOG(ERR, EAL, "Test assert %s line %d failed: " \ msg "\n", __func__, __LINE__, ##__VA_ARGS__); \ RTE_TEST_TRACE_FAILURE(__FILE__, __LINE__, __func__); \ return -1; \