Skip to contentSkip to conversation

: %p and 0 pad is not C99

PATCH New Juan Quintela 1 participant 1 message Dec 19, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : %p and 0 pad is not C99

Hi
compiler complains when you use %08p about the %0, notice that this came (normally) from somebody changing %08x to this, with %x the 0 is valid.

Later, Juan.

Index: arch/mips/lib/dump_tlb.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/lib/dump_tlb.c,v retrieving revision 1.8.2.6

mips/lib/dump_tlb.c +2 -2
diff -u -r1.8.2.6 dump_tlb.c
@@ -153,8 +154,8 @@
 	addr = (unsigned int) address;
 
 	printk("Addr                 == %08x\n", addr);
-	printk("task                 == %08p\n", t);
-	printk("task->mm             == %08p\n", t->mm);
+	printk("task                 == %8p\n", t);
+	printk("task->mm             == %8p\n", t->mm);
 	//printk("tasks->mm.pgd        == %08x\n", (unsigned int) t->mm->pgd);
 
 	if (addr > KSEG0)
Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy