summaryrefslogtreecommitdiffstats
path: root/net/netfilter/ipvs
diff options
context:
space:
mode:
authorMasanari Iida <standby24x7@gmail.com>2014-04-21 09:16:47 +0900
committerPablo Neira Ayuso <pablo@netfilter.org>2014-04-23 14:14:14 +0200
commit1404c3ab9810ab155db5e5368af69d4b20ea5aab (patch)
tree9a4e8ee05fda6d062e04293fd3533629a3a2252b /net/netfilter/ipvs
parentfd0d192be6e814495aec91f357b5801afc3b6262 (diff)
downloadtalos-op-linux-1404c3ab9810ab155db5e5368af69d4b20ea5aab.tar.gz
talos-op-linux-1404c3ab9810ab155db5e5368af69d4b20ea5aab.zip
netfilter: Fix format string mismatch in ip_vs_proto_name()
Fix string mismatch in ip_vs_proto_name() Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipvs')
-rw-r--r--net/netfilter/ipvs/ip_vs_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index 4f26ee46b51f..d9da8c448c76 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -97,7 +97,7 @@ const char *ip_vs_proto_name(unsigned int proto)
return "ICMPv6";
#endif
default:
- sprintf(buf, "IP_%d", proto);
+ sprintf(buf, "IP_%u", proto);
return buf;
}
}
OpenPOWER on IntegriCloud