From: Simon Schubert Date: Thu, 27 Aug 2009 15:23:09 +0000 (+0200) Subject: dma: beautify queue listing output X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fdma.git;a=commitdiff_plain;h=553ab44c53f24812d1f265e02ded2887bac9b37b dma: beautify queue listing output --- diff --git a/dma.c b/dma.c index dde31ca..61abe22 100644 --- a/dma.c +++ b/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"); } }