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
- References:
- How to printk unsigned long long variable?
- From: "jidong xiao" <[email protected]>
- Re: How to printk unsigned long long variable?
- From: "Vegard Nossum" <[email protected]>
- Re: How to printk unsigned long long variable?
- From: Randy Dunlap <[email protected]>
- Re: How to printk unsigned long long variable?
- From: "jidong xiao" <[email protected]>
- Re: How to printk unsigned long long variable?
- From: Roland Dreier <[email protected]>
- Re: How to printk unsigned long long variable?
- From: "jidong xiao" <[email protected]>
- Re: How to printk unsigned long long variable?
- From: Roland Dreier <[email protected]>
- How to printk unsigned long long variable?
- Prev by Date: Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
- Next by Date: Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
- Previous by thread: Re: How to printk unsigned long long variable?
- Next by thread: [PATCH] madvise_need_mmap_write() usage
- Index(es):