From: Karel Zak Date: Wed, 27 Jan 2010 17:16:06 +0000 (+0100) Subject: blkid: add newline when only one value is printed X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=261671a59af7111a3725a7774b24b77fbf647128;p=util-linux blkid: add newline when only one value is printed Signed-off-by: Karel Zak --- diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 03e3b807..56b25b8b 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -469,7 +469,7 @@ static int lowprobe_device(blkid_probe pr, const char *devname, char *show[], print_value(output, num++, devname, (char *) data, name, len); } - if (nvals > 1 && !(output & (OUTPUT_VALUE_ONLY | OUTPUT_UDEV_LIST))) + if (nvals >= 1 && !(output & (OUTPUT_VALUE_ONLY | OUTPUT_UDEV_LIST))) printf("\n"); done: if (rc == -2) {