Re: [PATCH 1/5] IPVS: use z modifier for sizeof() argument

2 messages, 2 authors, 2011-02-01 · open the first message on its own page

Re: [PATCH 1/5] IPVS: use z modifier for sizeof() argument

From: Hans Schillstrom <hidden>
Date: 2011-02-01 17:06:16

---- Original Message ----
From: Simon Horman <horms@verge.net.au>
To: netdev@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, lvs-devel@vger.kernel.org
Cc: "Randy Dunlap" <redacted>, "Stephen Rothwell" <redacted>, "Hans Schillstrom" <redacted>, "Patrick McHardy" <redacted>, "Simon Horman" <horms@verge.net.au>
Sent: Tue, Feb 1, 2011, 11:08 AM
Subject: [PATCH 1/5] IPVS: use z modifier for sizeof() argument

Cc: Hans Schillstrom <redacted>
Reported-by: Randy Dunlap <redacted>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Hans Schillstrom <redacted>
Tested-by: Hans Schillstrom <redacted>
quoted hunk
---
net/netfilter/ipvs/ip_vs_core.c |    2 +-
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 d889f4f..4d06617 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -1887,7 +1887,7 @@ static int __net_init __ip_vs_init(struct net *net)
	ipvs->gen = atomic_read(&ipvs_netns_cnt);
	atomic_inc(&ipvs_netns_cnt);
	net->ipvs = ipvs;
-	printk(KERN_INFO "IPVS: Creating netns size=%lu id=%d\n",
+	printk(KERN_INFO "IPVS: Creating netns size=%zu id=%d\n",
			 sizeof(struct netns_ipvs), ipvs->gen);
	return 0;
}
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/5] IPVS: use z modifier for sizeof() argument

From: Patrick McHardy <hidden>
Date: 2011-02-01 17:23:49

Am 01.02.2011 18:06, schrieb Hans Schillstrom:
quoted
quoted
[PATCH 1/5] IPVS: use z modifier for sizeof() argument

Cc: Hans Schillstrom <redacted>
Reported-by: Randy Dunlap <redacted>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Hans Schillstrom <redacted>
Tested-by: Hans Schillstrom <redacted>
Applied, thanks everyone.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help