DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ajit Khaparde <ajit.khaparde@broadcom.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: dev@dpdk.org, Stephen Hurd <stephen.hurd@broadcom.com>
Subject: Re: [dpdk-dev] [PATCH] net/bnxt: make driver less verbose
Date: Thu, 25 Aug 2016 14:03:08 -0500	[thread overview]
Message-ID: <CACZ4nhvdQmQ1vq7p9-peDEBeEgQfx4vRsnZQw=RVG5ghGKCZbA@mail.gmail.com> (raw)
In-Reply-To: <1472123147-22997-1-git-send-email-ferruh.yigit@intel.com>

On Thu, Aug 25, 2016 at 6:05 AM, Ferruh Yigit <ferruh.yigit@intel.com>
wrote:

> This line printed for every application even if driver is not used at
> all. Removing the line to reduce the noise.
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> ---
>  drivers/net/bnxt/bnxt_ethdev.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_
> ethdev.c
> index 3795fac..37d0322 100644
> --- a/drivers/net/bnxt/bnxt_ethdev.c
> +++ b/drivers/net/bnxt/bnxt_ethdev.c
> @@ -1056,7 +1056,6 @@ static struct eth_driver bnxt_rte_pmd = {
>
>  static int bnxt_rte_pmd_init(const char *name, const char *params
> __rte_unused)
>  {
> -       RTE_LOG(INFO, PMD, "bnxt_rte_pmd_init() called for %s\n", name);
>
How about changing the log level to DEBUG?

-       RTE_LOG(INFO, PMD, "bnxt_rte_pmd_init() called for %s\n", name);
+       RTE_LOG(DEBUG, PMD, "bnxt_rte_pmd_init() called for %s\n", name);

That should reduce the noise till the user explicitly changes the log level.

Thanks
​


>         rte_eth_driver_register(&bnxt_rte_pmd);
>         return 0;
>  }
> --
> 2.7.4
>
>

  reply	other threads:[~2016-08-25 19:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-25 11:05 Ferruh Yigit
2016-08-25 19:03 ` Ajit Khaparde [this message]
2016-08-26  8:39   ` Ferruh Yigit
2016-08-26 15:31     ` Ajit Khaparde
2016-09-11 12:25 ` Yuanhan Liu
2016-09-12 14:23   ` [dpdk-dev] [PATCH v2] " Ferruh Yigit
2016-09-19 15:04     ` Bruce Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACZ4nhvdQmQ1vq7p9-peDEBeEgQfx4vRsnZQw=RVG5ghGKCZbA@mail.gmail.com' \
    --to=ajit.khaparde@broadcom.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=stephen.hurd@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).