lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sun, 17 Jun 2007 16:55:09 +1000
From:	Stephen Rothwell <sfr@...b.auug.org.au>
To:	Roland Dreier <rdreier@...co.com>
Cc:	"jidong xiao" <jidong.xiao@...il.com>,
	"Randy Dunlap" <randy.dunlap@...cle.com>,
	"Vegard Nossum" <vegard.nossum@...il.com>,
	linux-kernel@...r.kernel.org
Subject: Re: How to printk unsigned long long variable?

On Fri, 15 Jun 2007 11:41:58 -0700 Roland Dreier <rdreier@...co.com> 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@...b.auug.org.au
http://www.canb.auug.org.au/~sfr/

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ