Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751959AbdFOVyt (ORCPT ); Thu, 15 Jun 2017 17:54:49 -0400 Received: from smtprelay0163.hostedemail.com ([216.40.44.163]:33003 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751546AbdFOVyr (ORCPT ); Thu, 15 Jun 2017 17:54:47 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3870:3871:3872:4250:4321:5007:7904:10004:10400:10848:11026:11232:11473:11658:11914:12043:12296:12438:12740:12895:13069:13311:13357:13439:13894:14181:14659:14721:21080:21212:21433:21451:21627:30012:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: suit43_6342529286e37 X-Filterd-Recvd-Size: 2390 Message-ID: <1497563676.14396.19.camel@perches.com> Subject: Re: [PATCH] Convert multiple netdev_info messages to netdev_dbg From: Joe Perches To: Michael J Dilmore , Jay Vosburgh Cc: Veaceslav Falico , Andy Gospodarek , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 15 Jun 2017 14:54:36 -0700 In-Reply-To: <1497550452-3067-1-git-send-email-michael.j.dilmore@gmail.com> References: <1497550452-3067-1-git-send-email-michael.j.dilmore@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1437 Lines: 42 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 > #include > #include > @@ -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...