From: Honnappa Nagarahalli Date: Thu, 16 Jul 2020 18:39:27 +0000 (-0500) Subject: eal: change the log level for test asserts X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8831678b51c791cc7332cf49a37f98e1167673fc;p=dpdk.git eal: change the log level for test asserts Change the log level for RTE_TEST_ASSERT macro to error to help log errors while running test cases. Suggested-by: David Marchand Signed-off-by: Honnappa Nagarahalli Acked-by: Aaron Conole Acked-by: Lukasz Wojciechowski --- diff --git a/lib/librte_eal/include/rte_test.h b/lib/librte_eal/include/rte_test.h index 89e47f47a5..62c8f165af 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; \