From: Joe Perches <joe@perches.com>
To: Michael J Dilmore <michael.j.dilmore@gmail.com>,
Jay Vosburgh <j.vosburgh@gmail.com>
Cc: Veaceslav Falico <vfalico@gmail.com>,
Andy Gospodarek <andy@greyhouse.net>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Convert multiple netdev_info messages to netdev_dbg
Date: Thu, 15 Jun 2017 14:54:36 -0700 [thread overview]
Message-ID: <1497563676.14396.19.camel@perches.com> (raw)
In-Reply-To: <1497550452-3067-1-git-send-email-michael.j.dilmore@gmail.com>
On Thu, 2017-06-15 at 19:14 +0100, Michael J Dilmore wrote:
> Multiple netdev_info messages clutter kernel output. Also add netdev_dbg for packets per slave.
[]
> diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c
[]
> @@ -9,6 +9,8 @@
> * (at your option) any later version.
> */
>
> +#define DEBUG 1
Is defining DEBUG really worthwhile.
As well, it's almost always just
#define DEBUG
without any level value unless the
level value is used in the code.
> +
> #include <linux/errno.h>
> #include <linux/if.h>
> #include <linux/netdevice.h>
> @@ -719,13 +721,13 @@ static int bond_option_mode_set(struct bonding *bond,
> const struct bond_opt_value *newval)
> {
> if (!bond_mode_uses_arp(newval->value) && bond->params.arp_interval) {
> - netdev_info(bond->dev, "%s mode is incompatible with arp monitoring, start mii monitoring\n",
> + netdev_dbg(bond->dev, "%s mode is incompatible with arp monitoring, start mii monitoring\n",
> newval->string);
Please realign any multiple line arguments to the
open parenthesis at the same time.
> /* disable arp monitoring */
> bond->params.arp_interval = 0;
> /* set miimon to default value */
> bond->params.miimon = BOND_DEFAULT_MIIMON;
> - netdev_info(bond->dev, "Setting MII monitoring interval to %d\n",
> + netdev_dbg(bond->dev, "Setting MII monitoring interval to %d\n",
> bond->params.miimon);
etc...
next prev parent reply other threads:[~2017-06-15 21:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-15 18:14 [PATCH] Convert multiple netdev_info messages to netdev_dbg Michael J Dilmore
2017-06-15 21:54 ` Joe Perches [this message]
2017-06-16 1:49 ` Jay Vosburgh
2017-06-16 2:03 ` Joe Perches
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=1497563676.14396.19.camel@perches.com \
--to=joe@perches.com \
--cc=andy@greyhouse.net \
--cc=j.vosburgh@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.j.dilmore@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=vfalico@gmail.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).