mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] hwpoison: fix/proc/meminfo alignment
@ 2009-10-13 14:03 Hugh Dickins
  2009-10-13 23:50 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Hugh Dickins @ 2009-10-13 14:03 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Wu Fengguang, Andrew Morton, linux-kernel

Given such a long name, the kB count in /proc/meminfo's HardwareCorrupted
line is being shown too far right (it does align with x86_64's VmallocChunk
above, but I hope nobody will ever have that much corrupted!).  Align it.

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
---

 fs/proc/meminfo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 2.6.32-rc4/fs/proc/meminfo.c	2009-09-28 00:28:37.000000000 +0100
+++ linux/fs/proc/meminfo.c	2009-10-13 14:09:12.000000000 +0100
@@ -99,7 +99,7 @@ static int meminfo_proc_show(struct seq_
 		"VmallocUsed:    %8lu kB\n"
 		"VmallocChunk:   %8lu kB\n"
 #ifdef CONFIG_MEMORY_FAILURE
-		"HardwareCorrupted: %8lu kB\n"
+		"HardwareCorrupted: %5lu kB\n"
 #endif
 		,
 		K(i.totalram),

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] hwpoison: fix/proc/meminfo alignment
  2009-10-13 14:03 [PATCH] hwpoison: fix/proc/meminfo alignment Hugh Dickins
@ 2009-10-13 23:50 ` Andi Kleen
  0 siblings, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2009-10-13 23:50 UTC (permalink / raw)
  To: Hugh Dickins; +Cc: Andi Kleen, Wu Fengguang, Andrew Morton, linux-kernel

On Tue, Oct 13, 2009 at 03:03:59PM +0100, Hugh Dickins wrote:
> Given such a long name, the kB count in /proc/meminfo's HardwareCorrupted
> line is being shown too far right (it does align with x86_64's VmallocChunk
> above, but I hope nobody will ever have that much corrupted!).  Align it.

Thanks, added.
-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] HWPOISON: fix/proc/meminfo alignment
  2009-10-22  6:02           ` [PATCH] HWPOISON: fix oops on ksm pages Andi Kleen
@ 2009-10-22  6:02             ` Andi Kleen
  0 siblings, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2009-10-22  6:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: fengguang.wu, Hugh Dickins, Andi Kleen

From: Hugh Dickins <hugh.dickins@tiscali.co.uk>

Given such a long name, the kB count in /proc/meminfo's HardwareCorrupted
line is being shown too far right (it does align with x86_64's VmallocChunk
above, but I hope nobody will ever have that much corrupted!).  Align it.

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 fs/proc/meminfo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c
index c7bff4f..a65239c 100644
--- a/fs/proc/meminfo.c
+++ b/fs/proc/meminfo.c
@@ -99,7 +99,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
 		"VmallocUsed:    %8lu kB\n"
 		"VmallocChunk:   %8lu kB\n"
 #ifdef CONFIG_MEMORY_FAILURE
-		"HardwareCorrupted: %8lu kB\n"
+		"HardwareCorrupted: %5lu kB\n"
 #endif
 		,
 		K(i.totalram),
-- 
1.6.0.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-22  6:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-13 14:03 [PATCH] hwpoison: fix/proc/meminfo alignment Hugh Dickins
2009-10-13 23:50 ` Andi Kleen
     [not found] <i>
2009-10-22  6:02 ` HWPOISON updates for 2.6.32-rc5 for review Andi Kleen
2009-10-22  6:02   ` [PATCH] HWPOISON: Clean up PR_MCE_KILL interface Andi Kleen
2009-10-22  6:02     ` [PATCH] HWPOISON: Add brief hwpoison description to Documentation Andi Kleen
2009-10-22  6:02       ` [PATCH] HWPOISON: return early on non-LRU pages Andi Kleen
2009-10-22  6:02         ` [PATCH] HWPOISON: Fix page count leak in hwpoison late kill in do_swap_page Andi Kleen
2009-10-22  6:02           ` [PATCH] HWPOISON: fix oops on ksm pages Andi Kleen
2009-10-22  6:02             ` [PATCH] HWPOISON: fix/proc/meminfo alignment Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®