diff options
author | Jay Lan <jlan@sgi.com> | 2014-09-29 15:36:57 -0700 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2015-05-09 23:16:19 +0100 |
commit | ffd8b8a4fa7e264cd458096ebbb80c398721a67a (patch) | |
tree | 2be659d9bd3569e6cd96e47d8dd221224ee960ad /kernel | |
parent | 45ee68db2cb25a673859140fa315d9f7e13cd461 (diff) | |
download | linux-stable-ffd8b8a4fa7e264cd458096ebbb80c398721a67a.tar.gz linux-stable-ffd8b8a4fa7e264cd458096ebbb80c398721a67a.tar.bz2 linux-stable-ffd8b8a4fa7e264cd458096ebbb80c398721a67a.zip |
kdb: fix incorrect counts in KDB summary command output
commit 146755923262037fc4c54abc28c04b1103f3cc51 upstream.
The output of KDB 'summary' command should report MemTotal, MemFree
and Buffers output in kB. Current codes report in unit of pages.
A define of K(x) as
is defined in the code, but not used.
This patch would apply the define to convert the values to kB.
Please include me on Cc on replies. I do not subscribe to linux-kernel.
Signed-off-by: Jay Lan <jlan@sgi.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/debug/kdb/kdb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index 63786e71a3cd..f56af551260e 100644 --- a/kernel/debug/kdb/kdb_main.c +++ b/kernel/debug/kdb/kdb_main.c @@ -2595,7 +2595,7 @@ static int kdb_summary(int argc, const char **argv) #define K(x) ((x) << (PAGE_SHIFT - 10)) kdb_printf("\nMemTotal: %8lu kB\nMemFree: %8lu kB\n" "Buffers: %8lu kB\n", - val.totalram, val.freeram, val.bufferram); + K(val.totalram), K(val.freeram), K(val.bufferram)); return 0; } |