]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
netfilter: hashlimit: prefer PRIu64 to avoid warnings on 32bit platforms
authorDuncan Roe <duncan_roe@optusnet.com.au>
Tue, 10 Sep 2019 21:08:20 +0000 (23:08 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 12 Sep 2019 10:20:24 +0000 (12:20 +0200)
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

index f3b6e04309bde0f10a01d4e193e62e96b4946e92..7f1d2a402c4fd00128e90c4c37fe5fed34179af7 100644 (file)
@@ -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);