From: Stephen Hemminger Date: Thu, 26 Feb 2009 10:19:35 +0000 (+0000) Subject: forcedeth: fix non-constant printk warnings X-Git-Tag: firefly_0821_release~15237^2~548 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a64cd64c056d46b419bb07b02153b00df97a2c5;p=firefly-linux-kernel-4.4.55.git forcedeth: fix non-constant printk warnings Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 8b7f8b77e5e0..e3b7305e8b8c 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c @@ -940,7 +940,7 @@ static int reg_delay(struct net_device *dev, int offset, u32 mask, u32 target, delaymax -= delay; if (delaymax < 0) { if (msg) - printk(msg); + printk("%s", msg); return 1; } } while ((readl(base + offset) & mask) != target);