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 <pablo@netfilter.org>
if (cgroup_path)
nft_print(octx, "\"%s\"", cgroup_path);
else
- nft_print(octx, "%lu", id);
+ nft_print(octx, "%" PRIu64, id);
xfree(cgroup_path);
}
* Do our own printing. The default print function will print in
* nanoseconds, which is ugly.
*/
- nft_print(octx, "%lu", tstamp);
+ nft_print(octx, "%" PRIu64, tstamp);
}
static time_t parse_iso_date(const char *sym)