Need to set hash log type to debug to print debug information, using following eal parameter: --log-type=hash,8
Suggested-by: Thomas Monjalon <tho...@monjalon.net> Signed-off-by: Dharmik Thakkar <dharmik.thak...@arm.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> Reviewed-by: Gavin Hu <gavin...@arm.com> Reviewed-by: Phil Yang <phil.y...@arm.com> --- test/test/test_hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test/test_hash.c b/test/test/test_hash.c index fe607fadf262..67b8e54bdf13 100644 --- a/test/test/test_hash.c +++ b/test/test/test_hash.c @@ -80,14 +80,13 @@ static uint32_t pseudo_hash(__attribute__((unused)) const void *keys, return 3; } -#define UNIT_TEST_HASH_VERBOSE 0 /* * Print out result of unit test hash operation. */ static void print_key_info(const char *msg, const struct flow_key *key, int32_t pos) { - if (UNIT_TEST_HASH_VERBOSE) { + if (rte_log_get_level(RTE_LOGTYPE_HASH) == RTE_LOG_DEBUG) { const uint8_t *p = (const uint8_t *)key; unsigned int i; -- 2.17.1