forcedeth: fix non-constant printk warnings

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Stephen Hemminger 2009-02-26 10:19:35 +00:00 committed by David S. Miller
parent 98683956ac
commit 6a64cd64c0

View File

@ -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);