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 <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>
This commit is contained in:
Honnappa Nagarahalli 2020-07-16 13:39:27 -05:00 committed by David Marchand
parent cfe4ca1021
commit 8831678b51

View 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; \