diff options
author | Heiko Carstens | 2011-09-06 02:52:53 +0200 |
---|---|---|
committer | Karel Zak | 2011-09-09 06:24:14 +0200 |
commit | 08cd09415ade0956484170fc6e0d7b22677dcbd1 (patch) | |
tree | 8e5261db38a6c17098a88f77265a21f99c13fe11 /sys-utils/lscpu.c | |
parent | lscpu: remove comma operator (diff) | |
download | kernel-qcow2-util-linux-08cd09415ade0956484170fc6e0d7b22677dcbd1.tar.gz kernel-qcow2-util-linux-08cd09415ade0956484170fc6e0d7b22677dcbd1.tar.xz kernel-qcow2-util-linux-08cd09415ade0956484170fc6e0d7b22677dcbd1.zip |
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 <heiko.carstens@de.ibm.com>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r-- | sys-utils/lscpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index f6641463f..f231e0e0e 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: |