diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-11-19 17:49:54 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-11-19 17:49:54 +0000 |
commit | 9e35a7c1e2322f042bad6cf8d79cf2284eac94f0 (patch) | |
tree | 200fa6e78763feb0b36d5fda2bd9e1dba398c488 | |
parent | b1e279efef898df203a9f928d88bbbe57930c5f8 (diff) |
pfctl -sq prettier
-rw-r--r-- | sbin/pfctl/pfctl_altq.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c index b1ceb3df586..3aeceada246 100644 --- a/sbin/pfctl/pfctl_altq.c +++ b/sbin/pfctl/pfctl_altq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_altq.c,v 1.6 2002/11/19 17:41:19 henning Exp $ */ +/* $OpenBSD: pfctl_altq.c,v 1.7 2002/11/19 17:49:53 henning Exp $ */ /* * Copyright (C) 2002 * Sony Computer Science Laboratories Inc. All rights reserved. @@ -152,9 +152,10 @@ print_queue(const struct pf_altq *a, unsigned level) { unsigned i; + printf("queue "); for (i = 0; i < level; ++i) - printf(" "); - printf("queue %s bandwidth %s priority %u", a->qname, + printf(" "); + printf("%s bandwidth %s priority %u", a->qname, rate2str((double)a->bandwidth), a->priority); /* printf("queue on %s %s parent 0x%x priority %u bandwidth %s" " qlimit %u qid 0x%x\n", @@ -542,7 +543,7 @@ pfctl_print_altq_node(const struct pf_altq_node *node, unsigned level) printf("\n"); for (child = node->children; child != NULL; child = child->next) - pfctl_print_altq_node(child, level+2); + pfctl_print_altq_node(child, level+1); } void |