mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
pfctl: fix superblock printf format mismatch
It is impossible to compile pfctl with OPT_DEBUG due to integer width mismatch:
/usr/home/kajetan.staszkiewicz/freebsd.git/sbin/pfctl/pfctl_optimize.c:1479:9: error: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Werror,-Wformat]
i - pf_rule_desc[closest].prf_off--- pfctl_optimize.o ---
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/home/kajetan.staszkiewicz/freebsd.git/sbin/pfctl/pfctl_optimize.c:52:44: note: expanded from macro 'DEBUG'
printf("%s: " str "\n", __FUNCTION__ , ## v)
~~~ ^
1 error generated.
Reviewed by: kp
Obtained from: OpenBSD (pfctl_optimize.c 1.15)
Differential Revision: https://reviews.freebsd.org/D38918
This commit is contained in:
parent
cec2d0b1c7
commit
9f1beeaed4
1 changed files with 1 additions and 1 deletions
|
|
@ -1476,7 +1476,7 @@ superblock_inclusive(struct superblock *block, struct pf_opt_rule *por)
|
|||
}
|
||||
|
||||
if (closest >= 0)
|
||||
DEBUG("superblock break @ %d on %s+%xh",
|
||||
DEBUG("superblock break @ %d on %s+%zxh",
|
||||
por->por_rule.nr,
|
||||
pf_rule_desc[closest].prf_name,
|
||||
i - pf_rule_desc[closest].prf_offset -
|
||||
|
|
|
|||
Loading…
Reference in a new issue