Commit ab66a1f3cff7f0a10a76c71a6a657b947e454de9
Committed by
Greg Kroah-Hartman
1 parent
67d4f7810b
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
kernel/debug/kdb/kdb_main.c
... | ... | @@ -2535,7 +2535,7 @@ |
2535 | 2535 | #define K(x) ((x) << (PAGE_SHIFT - 10)) |
2536 | 2536 | kdb_printf("\nMemTotal: %8lu kB\nMemFree: %8lu kB\n" |
2537 | 2537 | "Buffers: %8lu kB\n", |
2538 | - val.totalram, val.freeram, val.bufferram); | |
2538 | + K(val.totalram), K(val.freeram), K(val.bufferram)); | |
2539 | 2539 | return 0; |
2540 | 2540 | } |
2541 | 2541 |