[iptables] netfilter: hashlimit: prefer PRIu64 to avoid warnings on 32bit platforms
diff mbox series

Message ID 20190910210820.9742-1-fw@strlen.de
State Accepted
Delegated to: Pablo Neira
Headers show
Series
  • [iptables] netfilter: hashlimit: prefer PRIu64 to avoid warnings on 32bit platforms
Related show

Commit Message

Florian Westphal Sept. 10, 2019, 9:08 p.m. UTC
From: Duncan Roe <duncan_roe@optusnet.com.au>

I found this patch attached to an older BZ, apply this finally...

Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1107
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 extensions/libxt_hashlimit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Pablo Neira Ayuso Sept. 11, 2019, 5:21 p.m. UTC | #1
On Tue, Sep 10, 2019 at 11:08:20PM +0200, Florian Westphal wrote:
> From: Duncan Roe <duncan_roe@optusnet.com.au>
> 
> I found this patch attached to an older BZ, apply this finally...

LGTM.

Patch
diff mbox series

diff --git a/extensions/libxt_hashlimit.c b/extensions/libxt_hashlimit.c
index f3b6e04309bd..7f1d2a402c4f 100644
--- a/extensions/libxt_hashlimit.c
+++ b/extensions/libxt_hashlimit.c
@@ -772,7 +772,7 @@  static void hashlimit_mt_check(struct xt_fcheck_call *cb)
 		if (cb->xflags & F_BURST) {
 			if (info->cfg.burst < cost_to_bytes(info->cfg.avg))
 				xtables_error(PARAMETER_PROBLEM,
-					"burst cannot be smaller than %lub", cost_to_bytes(info->cfg.avg));
+					"burst cannot be smaller than %"PRIu64"b", cost_to_bytes(info->cfg.avg));
 
 			burst = info->cfg.burst;
 			burst /= cost_to_bytes(info->cfg.avg);