aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/dbg.c
diff options
context:
space:
mode:
authorStephen Hemminger <[email protected]>2009-03-19 02:11:29 +0000
committerDavid S. Miller <[email protected]>2009-03-19 02:11:29 +0000
commit4b704d59d6fb152bcd0883b84af5936a29067f12 (patch)
tree037d55170484c0140e86e76fbf4a07c7ad40501d /net/tipc/dbg.c
parenttcp: remove parameter from tcp_recv_urg(). (diff)
downloadkernel-4b704d59d6fb152bcd0883b84af5936a29067f12.tar.gz
kernel-4b704d59d6fb152bcd0883b84af5936a29067f12.zip
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/dbg.c')
-rw-r--r--net/tipc/dbg.c2
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, ...)
}
if (pb->echo)
- printk(print_string);
+ printk("%s", print_string);
spin_unlock_bh(&print_lock);
}