]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: simplify cache column output function
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 6 Sep 2011 00:52:54 +0000 (02:52 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Sep 2011 04:24:26 +0000 (06:24 +0200)
commitf6512068b2d0d424dc5aa125c0ba2fe411acd305
tree6deaad7dd9290a5b9cbd6db7c469bb9967489fd8
parent08cd09415ade0956484170fc6e0d7b22677dcbd1
lscpu: simplify cache column output function

Simplify the logic to "always print a ',' for each cache except if it is the
last one.  This is also a preparation patch for printing the cache column for
offline CPUs where it would print one colon too much because of the current
logic.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lscpu.c