HomeFreeBSD

Fix -Wformat errors in pfctl on 32-bit architectures

Description

Fix -Wformat errors in pfctl on 32-bit architectures

Use PRIu64 to printf(3) uint64_t quantities, otherwise this will result
in "error: format specifies type 'unsigned long' but the argument has
type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat]" on 32-bit
architectures.

Fixes: 80078d9d38fd
MFC after: 1 week

(cherry picked from commit 5b8f07b12f8477f1679013d6b3abdab8d33c7243)

Details

Provenance
dimAuthored on Aug 29 2021, 3:31 PM
kpCommitted on Sep 6 2021, 1:43 PM
Parents
R10:ef082ce0edcd: pfctl: use libpfctl to retrieve pf status
Branches
Unknown
Tags
Unknown