polachok's projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a9337db
)
dma: beautify queue listing output
author
Simon Schubert <corecode@dragonflybsd.org>
Thu, 27 Aug 2009 15:23:09 +0000 (17:23 +0200)
committer
Simon Schubert <corecode@dragonflybsd.org>
Thu, 27 Aug 2009 21:12:54 +0000 (23:12 +0200)
libexec/dma/dma.c
patch
|
blob
|
blame
|
history
diff --git
a/libexec/dma/dma.c
b/libexec/dma/dma.c
index
dde31ca
..
61abe22
100644
(file)
--- a/
libexec/dma/dma.c
+++ b/
libexec/dma/dma.c
@@
-325,11
+325,13
@@
show_queue(struct queue *queue)
LIST_FOREACH(it, &queue->queue, next) {
printf("ID\t: %s%s\n"
"From\t: %s\n"
- "To\t: %s\n"
- "--\n",
+ "To\t: %s\n",
it->queueid,
locked ? "*" : "",
it->sender, it->addr);
+
+ if (LIST_NEXT(it, next) != NULL)
+ printf("--\n");
}
}