summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-03-11 11:53:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-03-11 11:53:29 +0000
commit591b49d1a3f4005ce232622de84720a8f4daa310 (patch)
treebf7eff0a23053d9e8dd8abab5c913d39551d4881
parent7154a67a588a0d4fd73f4cc6c27031f5ef86d322 (diff)
fix format strings in debugging output, qid is unsigned
ok cedric@ mcbride@
-rw-r--r--sbin/pfctl/pfctl.c4
-rw-r--r--sbin/pfctl/pfctl_qstats.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 0479529c521..4f98512d617 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.159 2003/03/10 13:28:00 henning Exp $ */
+/* $OpenBSD: pfctl.c,v 1.160 2003/03/11 11:53:28 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -499,7 +499,7 @@ pfctl_print_rule_counters(struct pf_rule *rule, int opts)
}
printf("]\n");
- printf("[ Queue: qname=%s qid=%d pqname=%s pqid=%d ]\n",
+ printf("[ queue: qname=%s qid=%u pqname=%s pqid=%u ]\n",
rule->qname, rule->qid, rule->pqname, rule->pqid);
}
if (opts & PF_OPT_VERBOSE)
diff --git a/sbin/pfctl/pfctl_qstats.c b/sbin/pfctl/pfctl_qstats.c
index 64278d65edb..c6d3957b4bc 100644
--- a/sbin/pfctl/pfctl_qstats.c
+++ b/sbin/pfctl/pfctl_qstats.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_qstats.c,v 1.14 2003/03/08 14:26:31 henning Exp $ */
+/* $OpenBSD: pfctl_qstats.c,v 1.15 2003/03/11 11:53:28 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer
@@ -247,7 +247,7 @@ pfctl_print_altq_node(int dev, const struct pf_altq_node *node, unsigned level,
pfctl_print_altq_nodestat(dev, node);
if (opts & PF_OPT_DEBUG)
- printf("[ qid=%d ifname=%s ifbandwidth=%s ]\n", node->altq.qid,
+ printf("[ qid=%u ifname=%s ifbandwidth=%s ]\n", node->altq.qid,
node->altq.ifname, rate2str(node->altq.ifbandwidth));
for (child = node->children; child != NULL;