On Tue, Aug 09, 2011 at 01:20:27PM -0700, Joe Perches wrote:
On Tue, 2011-08-09 at 10:16 +0100, Jamie Iles wrote:
quoted
macb is already using the dev_dbg() and friends helpers so use netdev_()
along with a pr_fmt() definition to make the printing a little cleaner.
[]
quoted
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
[]
quoted
[]
quoted
+#define pr_fmt(fmt) "macb: " fmt
Hi Jamie.
Just trivia.
Please use #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
instead. There would be no output difference.
That'll make it easier to remove later when all of
of these #defines pr_fmt that use just KBUILD_MODNAME
can be removed.
I hadn't noticed KBUILD_MODNAME before, thanks for pointing that out
Joe. I'll update with this change.
Jamie