Fix printing of u_int64_t with a cast to unsigned long long.

Found-by:	tinderbox(amd64)
This commit is contained in:
Max Laier 2004-06-17 15:23:51 +00:00
parent b8938b667e
commit 4238db7522
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130634

View File

@ -556,7 +556,7 @@ print_status(struct pf_status *s, int opts)
s->src_nodes, "");
for (i = 0; i < SCNT_MAX; i++) {
printf(" %-25s %14lld ", pf_scounters[i],
s->scounters[i]);
(unsigned long long)s->scounters[i]);
if (runtime > 0)
printf("%14.1f/s\n",
(double)s->scounters[i] / (double)runtime);