From: Masanari Iida Date: Mon, 21 Apr 2014 00:16:47 +0000 (+0900) Subject: netfilter: Fix format string mismatch in ip_vs_proto_name() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1404c3ab9810ab155db5e5368af69d4b20ea5aab;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git netfilter: Fix format string mismatch in ip_vs_proto_name() Fix string mismatch in ip_vs_proto_name() Signed-off-by: Masanari Iida Signed-off-by: Simon Horman Signed-off-by: Pablo Neira Ayuso --- 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; } }