Skip to contentSkip to conversation

x86: remove over noisy debug printk

PATCH New Thomas Gleixner 1 participant 1 message Feb 10, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: remove over noisy debug printk

pageattr-test.c contains a noisy debug printk that people reported. The condition under which it prints (randomly tapping into a mem_map[] hole and not being able to c_p_a() there) is valid behavior and not interesting to report.

Remove it.

---
 arch/x86/mm/pageattr-test.c |    7 -------
 1 file changed, 7 deletions(-)
arch/x86/mm/pageattr-test.c +0 -7
Index: linux-2.6/arch/x86/mm/pageattr-test.c
===================================================================
@@ -40,7 +40,6 @@ struct split_state {
 static int print_split(struct split_state *s)
 {
 	long i, expected, missed = 0;
-	int printed = 0;
 	int err = 0;
 
 	s->lpg = s->gpg = s->spg = s->exec = 0;
@@ -53,12 +52,6 @@ static int print_split(struct split_stat
 
 		pte = lookup_address(addr, &level);
 		if (!pte) {
-			if (!printed) {
-				dump_pagetable(addr);
-				printk(KERN_INFO "CPA %lx no pte level %d\n",
-					addr, level);
-				printed = 1;
-			}
 			missed++;
 			i++;
 			continue;