From 31773f27ab7e854fe9a780601110affe739fa8c9 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 18 May 2021 13:45:05 +0200 Subject: src: use PRIu64 format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following compilation warnings on x86_32. datatype.c: In function ‘cgroupv2_type_print’: datatype.c:1387:22: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] nft_print(octx, "%lu", id); ~~^ ~~ %llu meta.c: In function ‘date_type_print’: meta.c:411:21: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] nft_print(octx, "%lu", tstamp); ~~^ ~~~~~~ %llu Signed-off-by: Pablo Neira Ayuso --- src/datatype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/datatype.c') diff --git a/src/datatype.c b/src/datatype.c index c4e66c46..743505de 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -1384,7 +1384,7 @@ static void cgroupv2_type_print(const struct expr *expr, if (cgroup_path) nft_print(octx, "\"%s\"", cgroup_path); else - nft_print(octx, "%lu", id); + nft_print(octx, "%" PRIu64, id); xfree(cgroup_path); } -- cgit v1.2.3