eal: change the log level for test asserts
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Thu, 16 Jul 2020 18:39:27 +0000 (13:39 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 17 Jul 2020 08:47:56 +0000 (10:47 +0200)
Change the log level for RTE_TEST_ASSERT macro to error to help
log errors while running test cases.

Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
lib/librte_eal/include/rte_test.h

index 89e47f4..62c8f16 100644 (file)
@@ -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;                                                    \