diff options
author | Karel Zak | 2019-03-19 16:24:54 +0100 |
---|---|---|
committer | Karel Zak | 2019-03-19 16:24:54 +0100 |
commit | 4161da7bb00967c301e6b0b3cf9f782d51a50dbc (patch) | |
tree | d51fe8f6752a59e81e10a0fe2547833a133cbcf7 /sys-utils/lscpu.c | |
parent | lscpu: (man) make SYNOPSIS compatible with another utils (diff) | |
download | kernel-qcow2-util-linux-4161da7bb00967c301e6b0b3cf9f782d51a50dbc.tar.gz kernel-qcow2-util-linux-4161da7bb00967c301e6b0b3cf9f782d51a50dbc.tar.xz kernel-qcow2-util-linux-4161da7bb00967c301e6b0b3cf9f782d51a50dbc.zip |
lscpu: fix --caches order
Signed-off-by: Karel Zak <kzak@redhat.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 bc9fe82fc..2cde39846 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -1575,7 +1575,7 @@ print_caches_readable(struct lscpu_desc *desc, int cols[], int ncols, err(EXIT_FAILURE, _("failed to allocate output column")); } - for (i = 0; i < desc->ncaches; i++) { + for (i = desc->ncaches - 1; i >= 0; i--) { struct cpu_cache *ca = &desc->caches[i]; struct libscols_line *line; int c; |