netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Himanshu Madhani <himanshu.madhani@qlogic.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	Dept_NX_Linux_NIC_Driver@qlogic.com,
	Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Subject: Re: [PATCH net-next v2 1/9] qlcnic: Print informational messages only once during driver load.
Date: Fri, 11 Oct 2013 12:33:20 -0700	[thread overview]
Message-ID: <1381520000.27498.21.camel@joe-AO722> (raw)
In-Reply-To: <8a3b95951fa6a48a8fa52975a567ead4c692a153.1381538863.git.himanshu.madhani@qlogic.com>

On Fri, 2013-10-11 at 14:42 -0400, Himanshu Madhani wrote:
> From: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>

trivia:

> diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c
[]
> @@ -94,13 +94,30 @@ qlcnic_83xx_config_vnic_buff_descriptors(struct qlcnic_adapter *adapter)
[]
> +		for (i = 0; i < ahw->act_pci_func; i++, npar++) {
> +			dev_info(dev, "id = %d active = %d type = %d\n"
> +				 "\tport = %d min bw = %d max bw = %d\n"
> +				 "\tmac_addr =  %pM\n", npar->pci_func,
> +				 npar->active, npar->type, npar->phy_port,
> +				 npar->min_bw, npar->max_bw, npar->mac);

Only the first line in dmesg will be prefixed with device
information this way.  This can make it difficult to use
"$ grep qlcnic" dmesg easily.  It might be better to use
3 lines or just 1 line.

			dev_info(dev, "id = %d active = %d type = %d port = %d min bw = %d max bw = %d mac_addr = %pM\n",
				 npar->pci_func, npar->active, npar->type,
				 npar->phy_port, npar->min_bw, npar->max_bw,
				 npar->mac);

I'd've used colons to shorten it a bit too:

			dev_info(dev, "id:%d active:%d type:%d port:%d min_bw:%d max_bw:%d mac_addr:%pM\n",
				 npar->pci_func, npar->active, npar->type,
				 npar->phy_port, npar->min_bw, npar->max_bw,
				 npar->mac);

  reply	other threads:[~2013-10-11 19:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-11 18:42 [PATCH net-next v2 0/9] qlcnic: fixes and ethtool enhancements Himanshu Madhani
2013-10-11 18:42 ` [PATCH net-next v2 1/9] qlcnic: Print informational messages only once during driver load Himanshu Madhani
2013-10-11 19:33   ` Joe Perches [this message]
2013-10-11 18:42 ` [PATCH net-next v2 2/9] qlcnic: Enhance ethtool to display ring indices and interrupt mask Himanshu Madhani
2013-10-11 18:42 ` [PATCH net-next v2 3/9] qlcnic: Firmware dump collection when auto recovery is disabled Himanshu Madhani
2013-10-11 18:42 ` [PATCH net-next v2 4/9] qlcnic: Update ethtool standard pause settings Himanshu Madhani
2013-10-11 18:42 ` [PATCH net-next v2 5/9] qlcnic: Remove redundant eSwitch enable commands Himanshu Madhani
2013-10-11 18:42 ` [PATCH net-next v2 6/9] qlcnic: dcb code cleanup and refactoring Himanshu Madhani
2013-10-11 18:42 ` [PATCH net-next v2 7/9] qlcnic: Validate Tx queue only for 82xx adapters Himanshu Madhani
2013-10-11 18:42 ` [PATCH net-next v2 8/9] qlcnic: Skip unknown entry type while collecting firmware dump Himanshu Madhani
2013-10-11 18:42 ` [PATCH net-next v2 9/9] qlcnic: update version to 5.3.51 Himanshu Madhani

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=1381520000.27498.21.camel@joe-AO722 \
    --to=joe@perches.com \
    --cc=Dept_NX_Linux_NIC_Driver@qlogic.com \
    --cc=davem@davemloft.net \
    --cc=himanshu.madhani@qlogic.com \
    --cc=netdev@vger.kernel.org \
    --cc=sucheta.chakraborty@qlogic.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).