diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-02-15 16:22:51 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-02-15 16:22:51 +0000 |
commit | 2dfe3ec23d69f4a014a02721100922c29c84ca88 (patch) | |
tree | 6923e3958aa4cd0668d636f9ce637af278ac269d /sbin | |
parent | c0a04e017b2b5c9f9903a8f32fd130fd35a6db6f (diff) | |
download | src-2dfe3ec23d69f4a014a02721100922c29c84ca88.tar.gz src-2dfe3ec23d69f4a014a02721100922c29c84ca88.zip |
Better build fix.
Notes
Notes:
svn path=/head/; revision=261937
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 8b9be0b16a30..05b97fa40693 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -792,17 +792,18 @@ pfctl_print_rule_counters(struct pf_rule *rule, int opts) } if (opts & PF_OPT_VERBOSE) { printf(" [ Evaluations: %-8llu Packets: %-8llu " - "Bytes: %-10llu States: %-6ju]\n", + "Bytes: %-10llu States: %-6"PRIuPTR"]\n", (unsigned long long)rule->evaluations, (unsigned long long)(rule->packets[0] + rule->packets[1]), (unsigned long long)(rule->bytes[0] + - rule->bytes[1]), (uintmax_t)rule->states_cur); + rule->bytes[1]), + (uintptr_t)rule->states_cur); if (!(opts & PF_OPT_DEBUG)) printf(" [ Inserted: uid %u pid %u " - "State Creations: %-6ju]\n", + "State Creations: %-6"PRIuPTR"]\n", (unsigned)rule->cuid, (unsigned)rule->cpid, - (uintmax_t)rule->states_tot); + (uintptr_t)rule->states_tot); } } @@ -904,7 +905,7 @@ pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format, case PFCTL_SHOW_LABELS: if (pr.rule.label[0]) { printf("%s %llu %llu %llu %llu" - " %llu %llu %llu %llu\n", + " %llu %llu %llu %"PRIuPTR"\n", pr.rule.label, (unsigned long long)pr.rule.evaluations, (unsigned long long)(pr.rule.packets[0] + @@ -915,7 +916,7 @@ pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format, (unsigned long long)pr.rule.bytes[0], (unsigned long long)pr.rule.packets[1], (unsigned long long)pr.rule.bytes[1], - (unsigned long long)pr.rule.states_tot); + (uintptr_t)pr.rule.states_tot); } break; case PFCTL_SHOW_RULES: |