fix format strings in debugging output, qid is unsigned
authorhenning <henning@openbsd.org>
Tue, 11 Mar 2003 11:53:28 +0000 (11:53 +0000)
committerhenning <henning@openbsd.org>
Tue, 11 Mar 2003 11:53:28 +0000 (11:53 +0000)
ok cedric@ mcbride@

sbin/pfctl/pfctl.c
sbin/pfctl/pfctl_qstats.c

index 0479529..4f98512 100644 (file)
@@ -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)
index 64278d6..c6d3957 100644 (file)
@@ -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;