diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2019-09-10 23:08:20 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-09-12 12:20:24 +0200 |
commit | 8934ced112e9cbe03072f50df0975fe6840f14b3 (patch) | |
tree | ec5eb72620bfab703f0835ee9aab9503449d1a18 /extensions | |
parent | a0f1a756419d0738c833d53b656350a520fc94c8 (diff) |
netfilter: hashlimit: prefer PRIu64 to avoid warnings on 32bit platforms
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>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libxt_hashlimit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_hashlimit.c b/extensions/libxt_hashlimit.c index f3b6e043..7f1d2a40 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); |