Re: How do I printk <type> correctly?
From: Johannes Berg
Date: Fri Oct 24 2008 - 05:51:50 EST
On Thu, 2008-10-23 at 13:40 -0700, David Miller wrote:
> > An "unsigned long long" is 64-bits too even on 64-bit platforms, so
> > why the difference? Are there any differences like alignment on some
> > platforms?
>
> I invite you to go make that change and then try to fixup all the
> resulting build warnings. Some of us already made an attempt at
> some point in the past. :-/
Heh, ok. I was just curious really. I think that answers it well
enough :)
> But it's just papering over the core problem, that we can't extend
> gcc's automatic printf format type checking easily.
>
> Even if we make u64 the same type everywhere, things like sector_t
> and other types which do have to vary by architecture will need
> to be casted.
Indeed, it doesn't really help that much.
johannes
Attachment:
signature.asc
Description: This is a digitally signed message part