From: Simon Schubert Date: Thu, 27 Aug 2009 15:23:09 +0000 (+0200) Subject: dma: beautify queue listing output X-Git-Tag: v2.4.0~107^2~4 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/71b5e57df2e9f39b9d76107ca19950fc8fd76fb4 dma: beautify queue listing output --- diff --git a/libexec/dma/dma.c b/libexec/dma/dma.c index dde31ca..61abe22 100644 --- 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"); } }