[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1269969733.4558.171.camel@Joe-Laptop.home>
Date: Tue, 30 Mar 2010 10:22:13 -0700
From: Joe Perches <joe@...ches.com>
To: Alexander Kurz <akurz@...la.de>
Cc: "David S. Miller" <davem@...emloft.net>,
Ken Kawasaki <ken_kawasaki@...ing.nifty.jp>,
Dominik Brodowski <linux@...inikbrodowski.net>,
Magnus Damm <damm@...nsource.se>,
Ben Hutchings <ben@...adent.org.uk>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net/pcmcia 3com: replacements of printk() with
dev_info() and friends (fwd)
On Tue, 2010-03-30 at 21:01 +0400, Alexander Kurz wrote:
> I wrote a patch as suggested by kernel-janitors.
> It is my first patch, so I highly welcome comments and hints,
> thanks, Alexander Kurz
As this is a network driver, you could use netdev_<level>
for most of this. Also, you could coalesce the format
strings to go beyond 80 columns. It makes grepping
a bit easier.
> - printk(KERN_INFO "%s: %s at io %#3lx, irq %d, "
> + dev_info(&dev->dev, "%s: %s at io %#3lx, irq %d, "
> "hw_addr %pM.\n",
This could become:
netdev_info(dev, "%s at io %#3lx, irq %d, hw_addr %pM\n"
cardname, dev->base_addr, dev->irq, dev->dev_addr);
etc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists