From f00aae6d7b6690e030a6596a6fcf9be6f260b8c5 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