[dpdk-dev] [PATCH v2 2/3] cfgfile: use RTE_LOG for errors
Stephen Hemminger
stephen at networkplumber.org
Thu Jul 18 16:34:59 CEST 2019
On Thu, 18 Jul 2019 09:31:11 +0100
Bruce Richardson <bruce.richardson at intel.com> wrote:
> On Wed, Jul 17, 2019 at 05:48:21PM -0700, Stephen Hemminger wrote:
> > 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 <stephen at networkplumber.org>
> > ---
> > lib/librte_cfgfile/Makefile | 1 +
> > lib/librte_cfgfile/rte_cfgfile.c | 38 +++++++++++++++++++++++---------
> > 2 files changed, 29 insertions(+), 10 deletions(-)
> >
> > diff --git a/lib/librte_cfgfile/Makefile b/lib/librte_cfgfile/Makefile
> > index d9512565e559..4fc711778699 100644
> > --- a/lib/librte_cfgfile/Makefile
> > +++ b/lib/librte_cfgfile/Makefile
> > @@ -11,6 +11,7 @@ LIB = librte_cfgfile.a
> > CFLAGS += -O3
> > CFLAGS += $(WERROR_FLAGS)
> > CFLAGS += -I$(SRCDIR)/../librte_eal/common/include
> > +LDFLAGS += -lrte_log
> >
> Where does this come from, there is no separate log library in DPDK?
I saw a build failure with previous patch about rte_log not being
present.
More information about the dev
mailing list