Re: How to printk unsigned long long variable?

From: Stephen Rothwell
Date: Sun Jun 17 2007 - 02:55:38 EST


On Fri, 15 Jun 2007 11:41:58 -0700 Roland Dreier <rdreier@xxxxxxxxx> wrote:
>
> > dma_mask should be a pointer, I mean, the element in struct device, see below,
>
> Sorry, you're right.
>
> So print it as (unsigned long long) *dev->dma_mask.

And the reason you need to cast it is because u64 is "unsigned long" on
some architectures and "unsigned long long" on others.

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature