]> 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>
Tue, 18 Oct 2011 12:22:26 +0000 (14:22 +0200)
commit4f02e85bea6ffd5409e382a8d9e689a7c0c7068c
tree7f7a0e9b5eb719c31936a0c8410e42e757817f33
parent1c336d735f428ef5d66391ddf4ee425e3f1fad5d
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