提交 6a64cd64 编写于 作者: S Stephen Hemminger 提交者: David S. Miller

forcedeth: fix non-constant printk warnings

Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 98683956
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册