Re: How to printk unsigned long long variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Jun 2007 11:41:58 -0700 Roland Dreier <[email protected]> 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                    [email protected]
http://www.canb.auug.org.au/~sfr/

Attachment: pgpYh4drxgAtT.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux