On Wed, 17 Jul 2019 23:01:00 +0200 Thomas Monjalon <tho...@monjalon.net> wrote:
> 16/07/2019 19:27, Stephen Hemminger: > > In general, DPDK libraries to not print error messages to > > stdout because that is often redirected to /dev/null for daemons. > > This patch changes cfgfile library to use RTE_LOG with its > > own type. > > > > Signed-off-by: Stephen Hemminger <step...@networkplumber.org> > > --- > > --- a/lib/librte_eal/common/include/rte_log.h > > +++ b/lib/librte_eal/common/include/rte_log.h > > @@ -62,6 +62,7 @@ extern struct rte_logs rte_logs; > > #define RTE_LOGTYPE_EFD 18 /**< Log related to EFD. */ > > #define RTE_LOGTYPE_EVENTDEV 19 /**< Log related to eventdev. */ > > #define RTE_LOGTYPE_GSO 20 /**< Log related to GSO. */ > > +#define RTE_LOGTYPE_CFGFILE 21 /**< Log related to cfgfile. */ > > As you know, we are supposed to use dynamic logging now. > Let's stop to add new static log types here. > Better, we should plan to completely drop these types. > > Ok, but rte_cfgfile can be used before eal init.