forcedeth: fix non-constant printk warnings
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 26 Feb 2009 10:19:35 +0000 (10:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 06:22:03 +0000 (22:22 -0800)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/forcedeth.c

index 8b7f8b77e5e01ef3db19f1ce1f99c7ca482ae3a2..e3b7305e8b8cecb39a3bd73688dad52bf7b4d980 100644 (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);