[dpdk-dev] DPDK log system is not working
Lu, Patrick
patrick.lu at intel.com
Thu Apr 20 20:35:29 CEST 2017
Hi,
I've recently rebased my DPDK code from v16.07 to v17.05-rc1 and learned rte_set_log_type() API is deprecated now, so I switched to rte_log_set_level() API.
My old code was as follow:
#define C2CV3 RTE_LOGTYPE_USER1
#define D RTE_LOG_DEBUG
#define I RTE_LOG_INFO
#define N RTE_LOG_NOTICE
rte_set_log_type(C2CV3, 1);
rte_log(I, C2CV3, "Hello World\n");
The new code (according to the rte_set_log_type or test_log.c):
rte_log_set_level(C2CV3, 0);
rte_log(I, C2CV3, "Does not work\n");
Also, the test_log.c looks broken too.
Patrick
More information about the dev
mailing list