From: "Lu, Patrick" <patrick.lu@intel.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] DPDK log system is not working
Date: Thu, 20 Apr 2017 18:35:29 +0000 [thread overview]
Message-ID: <EFC7DD9FAC418F4683FA895DBD8B35A30FC2F6A5@fmsmsx101.amr.corp.intel.com> (raw)
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
next reply other threads:[~2017-04-20 18:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-20 18:35 Lu, Patrick [this message]
2017-04-20 20:06 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EFC7DD9FAC418F4683FA895DBD8B35A30FC2F6A5@fmsmsx101.amr.corp.intel.com \
--to=patrick.lu@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).