DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DPDK log system is not working
@ 2017-04-20 18:35 Lu, Patrick
  2017-04-20 20:06 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Lu, Patrick @ 2017-04-20 18:35 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-20 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-20 18:35 [dpdk-dev] DPDK log system is not working Lu, Patrick
2017-04-20 20:06 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).