Re: trace: fix printk warning for u64

From: Andrew Morton
Date: Tue Oct 28 2008 - 01:07:46 EST


On Tue, 28 Oct 2008 00:12:54 +1100 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:

> Hi Ingo,
>
> On Mon, 27 Oct 2008 10:52:48 +0100 Ingo Molnar <mingo@xxxxxxx> wrote:
> >
> > (btw., did the "unify u64 definitions across all platforms" project
> > get anywhere?)
>
> I think (from a comment from DaveM) that it led into a real mess.

The problem is the large amount of arch-specific code which is printing
u64's with %lu because it "knows" that u64 is implemented as ulong.
They all need to be switched to %ll.

A better strategy to get all this done would be to convert the
offending architectures to `long long' individually. Then when that's
all done, unifying the typedef is a trivial step.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/