All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: debug: make bad_range() output more usable and readable
@ 2014-04-21 18:07 ` Dave Hansen
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Hansen @ 2014-04-21 18:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-mm, akpm, Dave Hansen, dave.hansen


From: Dave Hansen <dave.hansen@linux.intel.com>

Nobody outputs memory addresses in decimal.  PFNs are essentially
addresses, and they're gibberish in decimal.  Output them in hex.

Also, add the nid and zone name to give a little more context to
the message.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
---

 b/mm/page_alloc.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff -puN mm/page_alloc.c~range-in-hex mm/page_alloc.c
--- a/mm/page_alloc.c~range-in-hex	2014-04-21 10:11:32.274712151 -0700
+++ b/mm/page_alloc.c	2014-04-21 10:11:32.279712378 -0700
@@ -261,8 +261,9 @@ static int page_outside_zone_boundaries(
 	} while (zone_span_seqretry(zone, seq));
 
 	if (ret)
-		pr_err("page %lu outside zone [ %lu - %lu ]\n",
-			pfn, start_pfn, start_pfn + sp);
+		pr_err("page 0x%lx outside node %d zone %s [ 0x%lx - 0x%lx ]\n",
+			pfn, zone_to_nid(zone), zone->name,
+			start_pfn, start_pfn + sp);
 
 	return ret;
 }
_

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

* [PATCH] mm: debug: make bad_range() output more usable and readable
@ 2014-04-21 18:07 ` Dave Hansen
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Hansen @ 2014-04-21 18:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-mm, akpm, Dave Hansen, dave.hansen


From: Dave Hansen <dave.hansen@linux.intel.com>

Nobody outputs memory addresses in decimal.  PFNs are essentially
addresses, and they're gibberish in decimal.  Output them in hex.

Also, add the nid and zone name to give a little more context to
the message.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
---

 b/mm/page_alloc.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff -puN mm/page_alloc.c~range-in-hex mm/page_alloc.c
--- a/mm/page_alloc.c~range-in-hex	2014-04-21 10:11:32.274712151 -0700
+++ b/mm/page_alloc.c	2014-04-21 10:11:32.279712378 -0700
@@ -261,8 +261,9 @@ static int page_outside_zone_boundaries(
 	} while (zone_span_seqretry(zone, seq));
 
 	if (ret)
-		pr_err("page %lu outside zone [ %lu - %lu ]\n",
-			pfn, start_pfn, start_pfn + sp);
+		pr_err("page 0x%lx outside node %d zone %s [ 0x%lx - 0x%lx ]\n",
+			pfn, zone_to_nid(zone), zone->name,
+			start_pfn, start_pfn + sp);
 
 	return ret;
 }
_

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH] mm: debug: make bad_range() output more usable and readable
  2014-04-21 18:07 ` Dave Hansen
@ 2014-04-22 23:19   ` David Rientjes
  -1 siblings, 0 replies; 4+ messages in thread
From: David Rientjes @ 2014-04-22 23:19 UTC (permalink / raw)
  To: Dave Hansen; +Cc: linux-kernel, linux-mm, akpm, dave.hansen

On Mon, 21 Apr 2014, Dave Hansen wrote:

> 
> From: Dave Hansen <dave.hansen@linux.intel.com>
> 
> Nobody outputs memory addresses in decimal.  PFNs are essentially
> addresses, and they're gibberish in decimal.  Output them in hex.
> 
> Also, add the nid and zone name to give a little more context to
> the message.
> 
> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>

Acked-by: David Rientjes <rientjes@google.com>

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

* Re: [PATCH] mm: debug: make bad_range() output more usable and readable
@ 2014-04-22 23:19   ` David Rientjes
  0 siblings, 0 replies; 4+ messages in thread
From: David Rientjes @ 2014-04-22 23:19 UTC (permalink / raw)
  To: Dave Hansen; +Cc: linux-kernel, linux-mm, akpm, dave.hansen

On Mon, 21 Apr 2014, Dave Hansen wrote:

> 
> From: Dave Hansen <dave.hansen@linux.intel.com>
> 
> Nobody outputs memory addresses in decimal.  PFNs are essentially
> addresses, and they're gibberish in decimal.  Output them in hex.
> 
> Also, add the nid and zone name to give a little more context to
> the message.
> 
> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>

Acked-by: David Rientjes <rientjes@google.com>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2014-04-22 23:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-21 18:07 [PATCH] mm: debug: make bad_range() output more usable and readable Dave Hansen
2014-04-21 18:07 ` Dave Hansen
2014-04-22 23:19 ` David Rientjes
2014-04-22 23:19   ` David Rientjes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.