From 08cd09415ade0956484170fc6e0d7b22677dcbd1 Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Tue, 6 Sep 2011 02:52:53 +0200 Subject: [PATCH] lscpu: fix cache output for extended parsable output The extended parsable output prints a colon instead of comma between each item. The case where a CPU doesn't belong to any cache was not converted. Just fix this. Signed-off-by: Heiko Carstens --- sys-utils/lscpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index f6641463f1..f231e0e0e5 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -922,7 +922,7 @@ print_parsable_cell(struct lscpu_desc *desc, int i, int col, int compatible) } } if (x == ca->nsharedmaps) - putchar(','); + putchar(compatible ? ',' : ':'); } break; case COL_POLARIZATION: -- 2.47.3