[dpdk-dev,2/2] net/bnx2x: make init and driver logtype names consistent
Checks
Commit Message
From: Rasesh Mody <rasesh.mody@qlogic.com>
Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com>
---
doc/guides/nics/bnx2x.rst | 1 +
drivers/net/bnx2x/bnx2x_ethdev.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
@@ -194,6 +194,7 @@ This section provides instructions to configure SR-IOV with Linux OS.
using the instructions outlined in the Application notes below.
#. Running testpmd:
+ (Supply ``--log-level="pmd.net.bnx2x.driver",7`` to view informational messages):
Follow instructions available in the document
:ref:`compiling and testing a PMD for a NIC <pmd_build_and_test>`
@@ -697,10 +697,10 @@ static int eth_bnx2x_pci_remove(struct rte_pci_device *pci_dev)
static void
bnx2x_init_log(void)
{
- bnx2x_logtype_init = rte_log_register("pmd.bnx2x.init");
+ bnx2x_logtype_init = rte_log_register("pmd.net.bnx2x.init");
if (bnx2x_logtype_init >= 0)
rte_log_set_level(bnx2x_logtype_init, RTE_LOG_NOTICE);
- bnx2x_logtype_driver = rte_log_register("pmd.bnx2x.driver");
+ bnx2x_logtype_driver = rte_log_register("pmd.net.bnx2x.driver");
if (bnx2x_logtype_driver >= 0)
rte_log_set_level(bnx2x_logtype_driver, RTE_LOG_NOTICE);
}