kdb: fix incorrect counts in KDB summary command output
authorJay Lan <jlan@sgi.com>
Mon, 29 Sep 2014 22:36:57 +0000 (15:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:40:52 +0000 (14:40 -0800)
commitab92b84e8d3efaff78ca896ae2a0f3b2edc871b0
tree52268e9eddc6b203a99ef493c805ca4e004ae326
parent9e35c538b978e909a7805997f5944d5a0b7f5e95
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>
kernel/debug/kdb/kdb_main.c