Skip to content

Commit

Permalink
forcedeth: fix non-constant printk warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Feb 27, 2009
1 parent 9868395 commit 6a64cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a64cd6

Please sign in to comment.