| To: | linux mips mailing list <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH]: correct format string in dump_tlb |
| From: | Juan Quintela <quintela@mandrakesoft.com> |
| Date: | 18 Dec 2002 02:43:37 +0100 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Hi
if we cast to unsigned it, print it as a long is a no-no :(
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.5
diff -u -r1.8.2.5 dump_tlb.c
--- arch/mips/lib/dump_tlb.c 2 Dec 2002 00:24:48 -0000 1.8.2.5
+++ arch/mips/lib/dump_tlb.c 18 Dec 2002 00:49:18 -0000
@@ -179,7 +180,7 @@
#ifdef CONFIG_64BIT_PHYS_ADDR
printk("page == %08Lx\n", (unsigned long long) pte_val(page));
#else
- printk("page == %08lx\n", (unsigned int) pte_val(page));
+ printk("page == %08x\n", (unsigned int) pte_val(page));
#endif
val = pte_val(page);
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH]: fix compiler warnings in the math-emulator, Juan Quintela |
|---|---|
| Next by Date: | [PATCH]: remove warnings on promlib, Juan Quintela |
| Previous by Thread: | [PATCH]: fix compiler warnings in the math-emulator, Juan Quintela |
| Next by Thread: | Re: [PATCH]: correct format string in dump_tlb, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |