diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-18 22:11:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-18 22:11:29 -0400 |
commit | 4b704d59d6fb152bcd0883b84af5936a29067f12 (patch) | |
tree | 037d55170484c0140e86e76fbf4a07c7ad40501d /net/tipc/dbg.c | |
parent | beedad923ad6237f03265fdf86eb8a1b50d14ae9 (diff) |
tipc: fix non-const printf format arguments
Fix warnings from current gcc about using non-const strings as printf
args in TIPC. Compile tested only (not a TIPC user).
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/dbg.c')
-rw-r--r-- | net/tipc/dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/dbg.c b/net/tipc/dbg.c index 29ecae851668..1885a7edb0c8 100644 --- a/net/tipc/dbg.c +++ b/net/tipc/dbg.c | |||
@@ -258,7 +258,7 @@ void tipc_printf(struct print_buf *pb, const char *fmt, ...) | |||
258 | } | 258 | } |
259 | 259 | ||
260 | if (pb->echo) | 260 | if (pb->echo) |
261 | printk(print_string); | 261 | printk("%s", print_string); |
262 | 262 | ||
263 | spin_unlock_bh(&print_lock); | 263 | spin_unlock_bh(&print_lock); |
264 | } | 264 | } |