From 71b5e57df2e9f39b9d76107ca19950fc8fd76fb4 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Thu, 27 Aug 2009 17:23:09 +0200 Subject: [PATCH] dma: beautify queue listing output --- libexec/dma/dma.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libexec/dma/dma.c b/libexec/dma/dma.c index dde31ca4f0..61abe22c19 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"); } } -- 2.11.4.GIT