netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/next] mac8390: Fix build breakage
@ 2010-01-09 13:21 Geert Uytterhoeven
  2010-01-10  7:00 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2010-01-09 13:21 UTC (permalink / raw)
  To: Joe Perches, David S. Miller; +Cc: linux-next, netdev

commit 18c0019102228875cb0f6f252dad5148491e96b2 ("drivers/net/mac8390.c:
Convert printk(KERN_<level> to pr_<level>(") broke the build:

| drivers/net/mac8390.c:306: error: expected ')' before 'version'

as "version" is not a string literal, but a variable.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
http://kisskb.ellerman.id.au/kisskb/buildresult/1985016/

 drivers/net/mac8390.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/mac8390.c b/drivers/net/mac8390.c
index c70bd68..a876867 100644
--- a/drivers/net/mac8390.c
+++ b/drivers/net/mac8390.c
@@ -303,7 +303,7 @@ static bool __init mac8390_init(struct net_device *dev, struct nubus_dev *ndev,
 	int offset;
 	volatile unsigned short *i;
 
-	printk_once(KERN_INFO pr_fmt(version));
+	printk_once(KERN_INFO pr_fmt("%s"), version);
 
 	dev->irq = SLOT2IRQ(ndev->board->slot);
 	/* This is getting to be a habit */
-- 
1.6.0.4

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH/next] mac8390: Fix build breakage
  2010-01-09 13:21 [PATCH/next] mac8390: Fix build breakage Geert Uytterhoeven
@ 2010-01-10  7:00 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-01-10  7:00 UTC (permalink / raw)
  To: geert; +Cc: joe, linux-next, netdev

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Sat, 9 Jan 2010 14:21:28 +0100 (CET)

> commit 18c0019102228875cb0f6f252dad5148491e96b2 ("drivers/net/mac8390.c:
> Convert printk(KERN_<level> to pr_<level>(") broke the build:
> 
> | drivers/net/mac8390.c:306: error: expected ')' before 'version'
> 
> as "version" is not a string literal, but a variable.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-10  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-09 13:21 [PATCH/next] mac8390: Fix build breakage Geert Uytterhoeven
2010-01-10  7:00 ` David Miller

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).