linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [POWERPC] Silence an annoying boot message
@ 2007-11-12  2:53 Stephen Rothwell
  2007-11-12  5:15 ` Olof Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2007-11-12  2:53 UTC (permalink / raw)
  To: paulus; +Cc: ppc-dev

vmemmap_populate will printk (with KERN_WARNING) for a lot of pages
if CONFIG_SPARSEMEM_VMEMMAP is enabled (at least it does on iSeries).
Turn it into a DEBUG message.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/powerpc/mm/init_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Without this patch, all the messages before this one are purged from the
console buffer.  Is this really a warning?

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c
index d9c82d3..ee0e0cc 100644
--- a/arch/powerpc/mm/init_64.c
+++ b/arch/powerpc/mm/init_64.c
@@ -239,7 +239,7 @@ int __meminit vmemmap_populate(struct page *start_page,
 		if (!p)
 			return -ENOMEM;
 
-		printk(KERN_WARNING "vmemmap %08lx allocated at %p, "
+		DBG(KERN_DEBUG "vmemmap %08lx allocated at %p, "
 		                    "physical %08lx.\n", start, p, __pa(p));
 
 		mapped = htab_bolt_mapping(start, start + page_size,
-- 
1.5.3.5

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

* Re: [PATCH] [POWERPC] Silence an annoying boot message
  2007-11-12  2:53 [PATCH] [POWERPC] Silence an annoying boot message Stephen Rothwell
@ 2007-11-12  5:15 ` Olof Johansson
  2007-11-12  8:52   ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Olof Johansson @ 2007-11-12  5:15 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: ppc-dev, paulus

Hi Stephen,

On Mon, Nov 12, 2007 at 01:53:39PM +1100, Stephen Rothwell wrote:
> vmemmap_populate will printk (with KERN_WARNING) for a lot of pages
> if CONFIG_SPARSEMEM_VMEMMAP is enabled (at least it does on iSeries).
> Turn it into a DEBUG message.
[...]
> diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c
> index d9c82d3..ee0e0cc 100644
> --- a/arch/powerpc/mm/init_64.c
> +++ b/arch/powerpc/mm/init_64.c
> @@ -239,7 +239,7 @@ int __meminit vmemmap_populate(struct page *start_page,
>  		if (!p)
>  			return -ENOMEM;
>  
> -		printk(KERN_WARNING "vmemmap %08lx allocated at %p, "
> +		DBG(KERN_DEBUG "vmemmap %08lx allocated at %p, "
>  		                    "physical %08lx.\n", start, p, __pa(p));

Please use pr_debug() instead.

Feel free to change the only other DBG() user in the file as well,
and take out the define of it


-Olof

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

* Re: [PATCH] [POWERPC] Silence an annoying boot message
  2007-11-12  5:15 ` Olof Johansson
@ 2007-11-12  8:52   ` Benjamin Herrenschmidt
  2007-11-13  4:41     ` Stephen Rothwell
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2007-11-12  8:52 UTC (permalink / raw)
  To: Olof Johansson; +Cc: Stephen Rothwell, paulus, ppc-dev


> Please use pr_debug() instead.
> 
> Feel free to change the only other DBG() user in the file as well,
> and take out the define of it

And for those who wonder where those DBG() come from, it's mostly me,
from a time when either pr_debug wasn't around, or because I wanted to
hook it to udbg_printf or other low level facilities before we had early
debug console.

There is no good reason to keep those around nowadays except bad
habit :-)

Cheers,
Ben

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

* [PATCH] [POWERPC] Silence an annoying boot message
  2007-11-12  8:52   ` Benjamin Herrenschmidt
@ 2007-11-13  4:41     ` Stephen Rothwell
  2007-11-13  4:51       ` Olof Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2007-11-13  4:41 UTC (permalink / raw)
  To: paulus; +Cc: Olof Johansson, ppc-dev

vmemmap_populate will printk (with KERN_WARNING) for a lot of pages
if CONFIG_SPARSEMEM_VMEMMAP is enabled (at least it does on iSeries).
Use pr_debug for it instead.

Replace the only other use of DBG in this file with pr_debug as well.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/powerpc/mm/init_64.c |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c
index d9c82d3..c0f5cff 100644
--- a/arch/powerpc/mm/init_64.c
+++ b/arch/powerpc/mm/init_64.c
@@ -19,8 +19,6 @@
  *
  */
 
-#undef DEBUG
-
 #include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
@@ -66,12 +64,6 @@
 
 #include "mmu_decl.h"
 
-#ifdef DEBUG
-#define DBG(fmt...) printk(fmt)
-#else
-#define DBG(fmt...)
-#endif
-
 #if PGTABLE_RANGE > USER_VSID_RANGE
 #warning Limited user VSID range means pagetable space is wasted
 #endif
@@ -175,8 +167,8 @@ void pgtable_cache_init(void)
 		int size = pgtable_cache_size[i];
 		const char *name = pgtable_cache_name[i];
 
-		DBG("Allocating page table cache %s (#%d) "
-		    "for size: %08x...\n", name, i, size);
+		pr_debug("Allocating page table cache %s (#%d) "
+			"for size: %08x...\n", name, i, size);
 		pgtable_cache[i] = kmem_cache_create(name,
 						     size, size,
 						     SLAB_PANIC,
@@ -239,8 +231,8 @@ int __meminit vmemmap_populate(struct page *start_page,
 		if (!p)
 			return -ENOMEM;
 
-		printk(KERN_WARNING "vmemmap %08lx allocated at %p, "
-		                    "physical %08lx.\n", start, p, __pa(p));
+		pr_debug("vmemmap %08lx allocated at %p, physical %08lx.\n",
+			start, p, __pa(p));
 
 		mapped = htab_bolt_mapping(start, start + page_size,
 					__pa(p), mode_rw, mmu_linear_psize,
-- 
1.5.3.5

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

* Re: [PATCH] [POWERPC] Silence an annoying boot message
  2007-11-13  4:41     ` Stephen Rothwell
@ 2007-11-13  4:51       ` Olof Johansson
  0 siblings, 0 replies; 5+ messages in thread
From: Olof Johansson @ 2007-11-13  4:51 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: ppc-dev, paulus

On Tue, Nov 13, 2007 at 03:41:49PM +1100, Stephen Rothwell wrote:
> vmemmap_populate will printk (with KERN_WARNING) for a lot of pages
> if CONFIG_SPARSEMEM_VMEMMAP is enabled (at least it does on iSeries).
> Use pr_debug for it instead.
> 
> Replace the only other use of DBG in this file with pr_debug as well.
> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>

Acked-by: Olof Johansson <olof@lixom.net>


-Olof

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

end of thread, other threads:[~2007-11-13  4:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12  2:53 [PATCH] [POWERPC] Silence an annoying boot message Stephen Rothwell
2007-11-12  5:15 ` Olof Johansson
2007-11-12  8:52   ` Benjamin Herrenschmidt
2007-11-13  4:41     ` Stephen Rothwell
2007-11-13  4:51       ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).