[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131101043158.GA13804@bronto-burt.dev.benboeckel.net>
Date: Fri, 1 Nov 2013 00:31:58 -0400
From: Ben Boeckel <mathstuf@...il.com>
To: Joe Perches <joe@...ches.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next 1/6] epic100: replace printk with netdev_ calls
On Thu, Oct 24, 2013 at 23:41:06 -0700, Joe Perches wrote:
> On Fri, 2013-10-25 at 02:26 -0400, Ben Boeckel wrote:
> Please run your patches through checkpatch.pl
Done. There are some 80 character limit issues yet, but they're literal
strings for the most part. I also left rampant space-for-indent as-is
(though I did nab a few space-between-tab instances I spotted).
> > 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.
Done.
> 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
Done.
--Ben
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists