linux-mips
[Top] [All Lists]

Re: [PATCH]: correct format string in dump_tlb

To: Juan Quintela <quintela@mandrakesoft.com>
Subject: Re: [PATCH]: correct format string in dump_tlb
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 18 Dec 2002 23:59:27 +0100
Cc: linux mips mailing list <linux-mips@linux-mips.org>
In-reply-to: <m2wum8p0dy.fsf@demo.mitica>; from quintela@mandrakesoft.com on Wed, Dec 18, 2002 at 02:43:37AM +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <m2wum8p0dy.fsf@demo.mitica>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
On Wed, Dec 18, 2002 at 02:43:37AM +0100, Juan Quintela wrote:

>         if we cast to unsigned it, print it as a long is a no-no :(

Correct but I didn't like your patch ...

> -     printk("page == %08lx\n", (unsigned int) pte_val(page));
> +     printk("page == %08x\n", (unsigned int) pte_val(page));

pte_val() returns unsigned long.  So I applied a different fix.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>