From 261671a59af7111a3725a7774b24b77fbf647128 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 27 Jan 2010 18:16:06 +0100 Subject: [PATCH] blkid: add newline when only one value is printed Signed-off-by: Karel Zak --- misc-utils/blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5