diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-11-12 23:41:49 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-11-13 00:23:47 -0500 |
commit | 6548d83a37a570b0050e60565937bbb582545d96 (patch) | |
tree | f2b9df74c33da45a90cb2e47edc90d891bdd21d7 /arch | |
parent | b7a2da1199d2ba2a870b137d6b4c2a538ab68c38 (diff) |
[POWERPC] Silence an annoying boot message
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>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/mm/init_64.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index d9c82d3d6482..c0f5cff77035 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -19,8 +19,6 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #undef DEBUG | ||
23 | |||
24 | #include <linux/signal.h> | 22 | #include <linux/signal.h> |
25 | #include <linux/sched.h> | 23 | #include <linux/sched.h> |
26 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
@@ -66,12 +64,6 @@ | |||
66 | 64 | ||
67 | #include "mmu_decl.h" | 65 | #include "mmu_decl.h" |
68 | 66 | ||
69 | #ifdef DEBUG | ||
70 | #define DBG(fmt...) printk(fmt) | ||
71 | #else | ||
72 | #define DBG(fmt...) | ||
73 | #endif | ||
74 | |||
75 | #if PGTABLE_RANGE > USER_VSID_RANGE | 67 | #if PGTABLE_RANGE > USER_VSID_RANGE |
76 | #warning Limited user VSID range means pagetable space is wasted | 68 | #warning Limited user VSID range means pagetable space is wasted |
77 | #endif | 69 | #endif |
@@ -175,8 +167,8 @@ void pgtable_cache_init(void) | |||
175 | int size = pgtable_cache_size[i]; | 167 | int size = pgtable_cache_size[i]; |
176 | const char *name = pgtable_cache_name[i]; | 168 | const char *name = pgtable_cache_name[i]; |
177 | 169 | ||
178 | DBG("Allocating page table cache %s (#%d) " | 170 | pr_debug("Allocating page table cache %s (#%d) " |
179 | "for size: %08x...\n", name, i, size); | 171 | "for size: %08x...\n", name, i, size); |
180 | pgtable_cache[i] = kmem_cache_create(name, | 172 | pgtable_cache[i] = kmem_cache_create(name, |
181 | size, size, | 173 | size, size, |
182 | SLAB_PANIC, | 174 | SLAB_PANIC, |
@@ -239,8 +231,8 @@ int __meminit vmemmap_populate(struct page *start_page, | |||
239 | if (!p) | 231 | if (!p) |
240 | return -ENOMEM; | 232 | return -ENOMEM; |
241 | 233 | ||
242 | printk(KERN_WARNING "vmemmap %08lx allocated at %p, " | 234 | pr_debug("vmemmap %08lx allocated at %p, physical %08lx.\n", |
243 | "physical %08lx.\n", start, p, __pa(p)); | 235 | start, p, __pa(p)); |
244 | 236 | ||
245 | mapped = htab_bolt_mapping(start, start + page_size, | 237 | mapped = htab_bolt_mapping(start, start + page_size, |
246 | __pa(p), mode_rw, mmu_linear_psize, | 238 | __pa(p), mode_rw, mmu_linear_psize, |