netfilter: Fix format string mismatch in ip_vs_proto_name()
Subsystems (4)
PATCH 1/5 netfilter: Fix format string mismatch in ip_vs_proto_name()
Fix string mismatch in ip_vs_proto_name()
Signed-off-by Masanari Iida <[email protected]>
--- net/netfilter/ipvs/ip_vs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/ipvs/ip_vs_core.c +1 -1
@@ -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; } }
Signature · 1 line
1.9.1.352.gd393d14
Simon Horman
maintainerQuoted 12 lines · Masanari Iida
Fix string mismatch in
ip_vs_proto_name()Signed-off-by Masanari Iida <[email protected]>--- net/netfilter/ipvs/ip_vs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/netfilter/ipvs/ip_vs_core.c +0
-0
net/netfilter/ipvs/ip_vs_core.c const char *ip_vs_proto_name(unsigned int proto) · line 103
Quoted 8 lines
net/netfilter/ipvs/ip_vs_core.c +1
-1@@ -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; } }
Thanks, I have queued this up.