From: Rasesh Mody Date: Wed, 18 Apr 2018 20:15:09 +0000 (-0700) Subject: net/bnx2x: make init and driver logtype names consistent X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=84785018d01932bf98dd0af948309aaefc18195f;p=dpdk.git net/bnx2x: make init and driver logtype names consistent Signed-off-by: Rasesh Mody --- diff --git a/doc/guides/nics/bnx2x.rst b/doc/guides/nics/bnx2x.rst index 31f146a03d..cecbfc2e70 100644 --- a/doc/guides/nics/bnx2x.rst +++ b/doc/guides/nics/bnx2x.rst @@ -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 ` diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index e08ef779fd..6ccbb99c92 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++ b/drivers/net/bnx2x/bnx2x_ethdev.c @@ -697,10 +697,10 @@ RTE_INIT(bnx2x_init_log); 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); }