[dpdk-dev,13/18] net/liquidio: align dynamic log names with standard

Message ID 1516870870-168223-14-git-send-email-harry.van.haaren@intel.com (mailing list archive)
State Accepted, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Van Haaren, Harry Jan. 25, 2018, 9:01 a.m. UTC
  This commit aligns the names for dynamic logging with
the newly defined logging format.

Note that the "lio" term has been replaced with "liquidio",
as the naming scheme defines that a PMD name should be the
same as the directory that it lives in: drivers/net/liquidio

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>

---

Maintainer:
Cc: shijith.thotton@cavium.com
Cc: ssrinivasan@cavium.com
---
 drivers/net/liquidio/lio_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Shijith Thotton Jan. 27, 2018, 5:21 a.m. UTC | #1
On Thu, Jan 25, 2018 at 09:01:05AM +0000, Harry van Haaren wrote:
> This commit aligns the names for dynamic logging with
> the newly defined logging format.
> 
> Note that the "lio" term has been replaced with "liquidio",
> as the naming scheme defines that a PMD name should be the
> same as the directory that it lives in: drivers/net/liquidio
> 
> Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>

Acked-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>

> 
> ---
> 
> Maintainer:
> Cc: shijith.thotton@cavium.com
> Cc: ssrinivasan@cavium.com
> ---
>  drivers/net/liquidio/lio_ethdev.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c
> index 843d023..e1a20cd 100644
> --- a/drivers/net/liquidio/lio_ethdev.c
> +++ b/drivers/net/liquidio/lio_ethdev.c
> @@ -2189,10 +2189,10 @@ RTE_INIT(lio_init_log);
>  static void
>  lio_init_log(void)
>  {
> -	lio_logtype_init = rte_log_register("pmd.lio.init");
> +	lio_logtype_init = rte_log_register("pmd.net.liquidio.init");
>  	if (lio_logtype_init >= 0)
>  		rte_log_set_level(lio_logtype_init, RTE_LOG_NOTICE);
> -	lio_logtype_driver = rte_log_register("pmd.lio.driver");
> +	lio_logtype_driver = rte_log_register("pmd.net.liquidio.driver");
>  	if (lio_logtype_driver >= 0)
>  		rte_log_set_level(lio_logtype_driver, RTE_LOG_NOTICE);
>  }
> -- 
> 2.7.4
>
  

Patch

diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c
index 843d023..e1a20cd 100644
--- a/drivers/net/liquidio/lio_ethdev.c
+++ b/drivers/net/liquidio/lio_ethdev.c
@@ -2189,10 +2189,10 @@  RTE_INIT(lio_init_log);
 static void
 lio_init_log(void)
 {
-	lio_logtype_init = rte_log_register("pmd.lio.init");
+	lio_logtype_init = rte_log_register("pmd.net.liquidio.init");
 	if (lio_logtype_init >= 0)
 		rte_log_set_level(lio_logtype_init, RTE_LOG_NOTICE);
-	lio_logtype_driver = rte_log_register("pmd.lio.driver");
+	lio_logtype_driver = rte_log_register("pmd.net.liquidio.driver");
 	if (lio_logtype_driver >= 0)
 		rte_log_set_level(lio_logtype_driver, RTE_LOG_NOTICE);
 }