Commit 13063832 authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen

[PATCH] i386: Drop noisy e820 debugging printks

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent f19cccf3
...@@ -393,10 +393,8 @@ int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map) ...@@ -393,10 +393,8 @@ int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map)
____________________33__ ____________________33__
______________________4_ ______________________4_
*/ */
printk("sanitize start\n");
/* if there's only one memory region, don't bother */ /* if there's only one memory region, don't bother */
if (*pnr_map < 2) { if (*pnr_map < 2) {
printk("sanitize bail 0\n");
return -1; return -1;
} }
...@@ -405,7 +403,6 @@ int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map) ...@@ -405,7 +403,6 @@ int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map)
/* bail out if we find any unreasonable addresses in bios map */ /* bail out if we find any unreasonable addresses in bios map */
for (i=0; i<old_nr; i++) for (i=0; i<old_nr; i++)
if (biosmap[i].addr + biosmap[i].size < biosmap[i].addr) { if (biosmap[i].addr + biosmap[i].size < biosmap[i].addr) {
printk("sanitize bail 1\n");
return -1; return -1;
} }
...@@ -501,7 +498,6 @@ int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map) ...@@ -501,7 +498,6 @@ int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map)
memcpy(biosmap, new_bios, new_nr*sizeof(struct e820entry)); memcpy(biosmap, new_bios, new_nr*sizeof(struct e820entry));
*pnr_map = new_nr; *pnr_map = new_nr;
printk("sanitize end\n");
return 0; return 0;
} }
...@@ -532,7 +528,6 @@ int __init copy_e820_map(struct e820entry * biosmap, int nr_map) ...@@ -532,7 +528,6 @@ int __init copy_e820_map(struct e820entry * biosmap, int nr_map)
unsigned long long size = biosmap->size; unsigned long long size = biosmap->size;
unsigned long long end = start + size; unsigned long long end = start + size;
unsigned long type = biosmap->type; unsigned long type = biosmap->type;
printk("copy_e820_map() start: %016Lx size: %016Lx end: %016Lx type: %ld\n", start, size, end, type);
/* Overflow in 64 bits? Ignore the memory map. */ /* Overflow in 64 bits? Ignore the memory map. */
if (start > end) if (start > end)
...@@ -543,17 +538,11 @@ int __init copy_e820_map(struct e820entry * biosmap, int nr_map) ...@@ -543,17 +538,11 @@ int __init copy_e820_map(struct e820entry * biosmap, int nr_map)
* Not right. Fix it up. * Not right. Fix it up.
*/ */
if (type == E820_RAM) { if (type == E820_RAM) {
printk("copy_e820_map() type is E820_RAM\n");
if (start < 0x100000ULL && end > 0xA0000ULL) { if (start < 0x100000ULL && end > 0xA0000ULL) {
printk("copy_e820_map() lies in range...\n"); if (start < 0xA0000ULL)
if (start < 0xA0000ULL) {
printk("copy_e820_map() start < 0xA0000ULL\n");
add_memory_region(start, 0xA0000ULL-start, type); add_memory_region(start, 0xA0000ULL-start, type);
} if (end <= 0x100000ULL)
if (end <= 0x100000ULL) {
printk("copy_e820_map() end <= 0x100000ULL\n");
continue; continue;
}
start = 0x100000ULL; start = 0x100000ULL;
size = end - start; size = end - start;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment