]> err.no Git - util-linux/commitdiff
blkid: add newline when only one value is printed
authorKarel Zak <kzak@redhat.com>
Wed, 27 Jan 2010 17:16:06 +0000 (18:16 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Feb 2010 08:58:57 +0000 (09:58 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/blkid.c

index 03e3b8075b801b6941f1bda9d983a142b668d10e..56b25b8b210f4b1a639e4f17b6b7852997ad316e 100644 (file)
@@ -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) {