netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Ben Boeckel <mathstuf@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next 1/6] epic100: replace printk with netdev_ calls
Date: Thu, 24 Oct 2013 23:41:06 -0700	[thread overview]
Message-ID: <1382683266.2068.13.camel@joe-AO722> (raw)
In-Reply-To: <1382682422-22677-2-git-send-email-mathstuf@gmail.com>

On Fri, 2013-10-25 at 02:26 -0400, Ben Boeckel wrote:
> Signed-off-by: Ben Boeckel <mathstuf@gmail.com>

Hi Ben.

Please run your patches through checkpatch.pl

> diff --git a/drivers/net/ethernet/smsc/epic100.c b/drivers/net/ethernet/smsc/epic100.c
[]
> @@ -490,7 +488,7 @@ static int epic_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
>  	if (ret < 0)
>  		goto err_out_unmap_rx;
>  
> -	printk(KERN_INFO "%s: %s at %lx, IRQ %d, %pM\n",
> +	netdev_info(dev, "%s: %s at %lx, IRQ %d, %pM\n",
>  	       dev->name, pci_id_tbl[chip_idx].name,
>  	       (long)pci_resource_start(pdev, EPIC_BAR), pdev->irq,
>  	       dev->dev_addr);

Please align the subsequent lines to the open parenthesis
and this conversion would now emit dev->name twice.

Try:
	netdev_info(dev, "%s at %lx, IRQ %d, %pM\n",
		    pci_id_tbl[chip_idx].name,
		    (long)pci_resource_start(pdev, EPIC_BAR),
		    pdev->irq, dev->dev_addr);

> @@ -703,7 +701,7 @@ static int epic_open(struct net_device *dev)
>  			mdio_write(dev, ep->phys[0], MII_BMCR, media2miictl[dev->if_port&15]);
>  		if (dev->if_port == 1) {
>  			if (debug > 1)
> -				printk(KERN_INFO "%s: Using the 10base2 transceiver, MII "
> +				netdev_info(dev, "%s: Using the 10base2 transceiver, MII "
>  					   "status %4.4x.\n",

Please coalesce the format fragments into a single line.

>  					   dev->name, mdio_read(dev, ep->phys[0], MII_BMSR));

same problem with duplicate dev->name

etc.

  reply	other threads:[~2013-10-25  6:41 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-25  6:26 [PATCH net-next 0/6] smsc: replace printk with netdev_ calls Ben Boeckel
2013-10-25  6:26 ` [PATCH net-next 1/6] epic100: " Ben Boeckel
2013-10-25  6:41   ` Joe Perches [this message]
2013-11-01  4:31     ` Ben Boeckel
2013-10-25  6:26 ` [PATCH net-next 2/6] smc91x: " Ben Boeckel
2013-10-25  6:26 ` [PATCH net-next 3/6] smc911x: " Ben Boeckel
2013-10-25  6:27 ` [PATCH net-next 4/6] smc9194: " Ben Boeckel
2013-10-25  6:27 ` [PATCH net-next 5/6] smc91c92_cs: " Ben Boeckel
2013-10-25  6:27 ` [PATCH net-next 6/6] smsc9420: " Ben Boeckel
2013-11-01  4:27 ` [PATCHv2 net-next 0/7] smsc: " Ben Boeckel
2013-11-01  4:27   ` [PATCHv2 net-next 1/7] epic100: " Ben Boeckel
2013-11-01  4:36     ` Joe Perches
2013-11-01  4:27   ` [PATCHv2 net-next 2/7] smc91x: " Ben Boeckel
2013-11-01  4:27   ` [PATCHv2 net-next 3/7] smc911x: " Ben Boeckel
2013-11-01  4:27   ` [PATCHv2 net-next 4/7] smsc911x: " Ben Boeckel
2013-11-01  4:27   ` [PATCHv2 net-next 5/7] smc9194: " Ben Boeckel
2013-11-01  4:27   ` [PATCHv2 net-next 6/7] smc91c92_cs: " Ben Boeckel
2013-11-01  4:27   ` [PATCHv2 net-next 7/7] smsc9420: " Ben Boeckel
2013-11-01 12:53 ` [PATCHv2 net-next 0/7] smsc: " Ben Boeckel
2013-11-01 12:53   ` [PATCHv3 net-next 1/7] epic100: " Ben Boeckel
2013-11-01 12:53   ` [PATCHv3 net-next 2/7] smc91x: " Ben Boeckel
2013-11-01 12:53   ` [PATCHv3 net-next 3/7] smc911x: " Ben Boeckel
2013-11-01 12:53   ` [PATCHv3 net-next 4/7] smsc911x: " Ben Boeckel
2013-11-01 12:53   ` [PATCHv3 net-next 5/7] smc9194: " Ben Boeckel
2013-11-01 12:53   ` [PATCHv3 net-next 6/7] smc91c92_cs: " Ben Boeckel
2013-11-01 12:53   ` [PATCHv3 net-next 7/7] smsc9420: " Ben Boeckel
2013-11-02  5:21   ` [PATCHv2 net-next 0/7] smsc: " 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=1382683266.2068.13.camel@joe-AO722 \
    --to=joe@perches.com \
    --cc=mathstuf@gmail.com \
    --cc=netdev@vger.kernel.org \
    /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).