Patchwork drivers/mtd/devices/phram.c: Use KBUILD_MODNAME

login
register
mail settings
Submitter Joe Perches
Date Oct. 20, 2010, 5:39 p.m.
Message ID <1287596362.1813.205.camel@Joe-Laptop>
Download mbox | patch
Permalink /patch/68451/
State New
Headers show

Comments

Joe Perches - Oct. 20, 2010, 5:39 p.m.
Use the more standard #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
No change in output strings.

Signed-off-by: Joe Perches <joe@perches.com>
---
Artem Bityutskiy - Oct. 21, 2010, 10:37 a.m.
On Wed, 2010-10-20 at 10:39 -0700, Joe Perches wrote:
> Use the more standard #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> No change in output strings.
> 
> Signed-off-by: Joe Perches <joe@perches.com>

Pushed to l2-mtd-2.6.git, thanks.
Jörn Engel - Oct. 22, 2010, 8:39 a.m.
On Thu, 21 October 2010 13:37:32 +0300, Artem Bityutskiy wrote:
> On Wed, 2010-10-20 at 10:39 -0700, Joe Perches wrote:
> > Use the more standard #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> > No change in output strings.
> > 
> > Signed-off-by: Joe Perches <joe@perches.com>
> 
> Pushed to l2-mtd-2.6.git, thanks.

Fine with me. (aka Acked-By:)

Jörn

Patch

diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index 1696bbe..5239328 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -15,7 +15,7 @@ 
  *	phram=swap,64Mi,128Mi phram=test,900Mi,1Mi
  */
 
-#define pr_fmt(fmt) "phram: " fmt
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <asm/io.h>
 #include <linux/init.h>