* [PATCH 1/5] netfilter: Fix format string mismatch in ip_vs_proto_name()
@ 2014-03-31 15:40 Masanari Iida
2014-04-03 1:37 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Masanari Iida @ 2014-03-31 15:40 UTC (permalink / raw)
To: netdev, wensong, horms, ja; +Cc: Masanari Iida
Fix string mismatch in ip_vs_proto_name()
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
net/netfilter/ipvs/ip_vs_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index 4f26ee4..d9da8c4 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;
}
}
--
1.9.1.352.gd393d14
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/5] netfilter: Fix format string mismatch in ip_vs_proto_name()
2014-03-31 15:40 [PATCH 1/5] netfilter: Fix format string mismatch in ip_vs_proto_name() Masanari Iida
@ 2014-04-03 1:37 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2014-04-03 1:37 UTC (permalink / raw)
To: Masanari Iida; +Cc: netdev, wensong, ja
On Tue, Apr 01, 2014 at 12:40:15AM +0900, Masanari Iida wrote:
> Fix string mismatch in ip_vs_proto_name()
>
> Signed-off-by: Masanari Iida <standby24x7@gmail.com>
> ---
> net/netfilter/ipvs/ip_vs_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
> index 4f26ee4..d9da8c4 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;
> }
> }
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-03 1:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-31 15:40 [PATCH 1/5] netfilter: Fix format string mismatch in ip_vs_proto_name() Masanari Iida
2014-04-03 1:37 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).