From: Stephen Hemminger Date: Wed, 25 Apr 2018 15:45:47 +0000 (-0700) Subject: net/nfp: use correct logtype for init messages X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a064f8821057231321f7ad181601c1cd024d1020;p=dpdk.git net/nfp: use correct logtype for init messages The NFP driver init messages would come out under PMD not net.pmd.nfp.init. Signed-off-by: Stephen Hemminger Acked-by: Alejandro Lucero --- diff --git a/drivers/net/nfp/nfp_net_logs.h b/drivers/net/nfp/nfp_net_logs.h index 3fe24e96b3..2917da56ce 100644 --- a/drivers/net/nfp/nfp_net_logs.h +++ b/drivers/net/nfp/nfp_net_logs.h @@ -36,7 +36,8 @@ extern int nfp_logtype_init; #define PMD_INIT_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, nfp_logtype_init, \ + "%s(): " fmt "\n", __func__, ## args) #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") #ifdef RTE_LIBRTE_NFP_NET_DEBUG_RX