From: Joe Perches <joe@perches.com>
To: Simon Xiao <sixiao@microsoft.com>
Cc: KY Srinivasan <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
"devel@linuxdriverproject.org" <devel@linuxdriverproject.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next,v2,1/1] hv_netvsc: introduce netif-msg into netvsc module
Date: Fri, 24 Apr 2015 15:59:29 -0700 [thread overview]
Message-ID: <1429916369.23327.29.camel@perches.com> (raw)
In-Reply-To: <CY1PR03MB137688C6CC69DBFC097F6031C4EC0@CY1PR03MB1376.namprd03.prod.outlook.com>
On Fri, 2015-04-24 at 22:52 +0000, Simon Xiao wrote:
> > From: Joe Perches [mailto:joe@perches.com]
> > On Fri, 2015-04-24 at 11:34 -0700, sixiao@microsoft.com wrote:
> > > From: Simon Xiao <sixiao@microsoft.com>
> > >
> > > 1. Introduce netif-msg to netvsc to control debug logging output and
> > > keep msg_enable in netvsc_device_context so that it is kept
> > > persistently.
[]
> > > diff --git a/drivers/net/hyperv/netvsc_drv.c
[]
> > > + if (netif_msg_probe(net_device_ctx))
> > > + netdev_dbg(net, "netvsc msg_enable: %d",
> > > + net_device_ctx->msg_enable);
> >
> > Please use newlines to terminate formats.
> >
> > It helps prevent log content interleaving when multiple processes are
> > emitting output at the same time.
> >
> > This could be shortened to use netif_<level> like:
> >
> > netif_dbg(net_device_ctx, probe, net, "netvsc_msg_enable: %d\n",
> > net_device_ctx->msg_enable);
> >
>
> Thanks Joe. I would like to leave this to my next patch as there are some places else in netvsc (rndis_filter.c)
> have the same usage. I would like to fix them in one patch to make them consistent.
Oh sure no worries.
It is nicer though to not introduce new formats
with missing newline defects.
cheers, Joe
next prev parent reply other threads:[~2015-04-24 22:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-24 18:34 [PATCH net-next,v2,1/1] hv_netvsc: introduce netif-msg into netvsc module sixiao
2015-04-24 20:29 ` Joe Perches
2015-04-24 22:52 ` Simon Xiao
2015-04-24 22:59 ` Joe Perches [this message]
2015-04-25 19:48 ` David Miller
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=1429916369.23327.29.camel@perches.com \
--to=joe@perches.com \
--cc=devel@linuxdriverproject.org \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sixiao@microsoft.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).