[Ocfs2-tools-devel] [PATCH 3/3] Suppress warning when print __u64 in X86_64.

Joel Becker Joel.Becker at oracle.com
Thu Mar 27 14:57:37 PDT 2008


On Thu, Mar 27, 2008 at 03:29:02PM +0800, Tao Ma wrote:
> On x86_64, when print a __u64 by using PRIu64, gcc throw a warning:
> warning: format ‘%lu’ expects type ‘long unsigned int’,
> but argument 4 has type ‘__u64’.
> It seems that __u64 is a long int, uint64_t a long long int and
> PRIu64 "llu". So __u64 is not compatible with PRIu64, even though
> it is a 64bit value.

	Where are you seeing this?  On my local machines, PRIu64 on
64bit is "lu".

Joel


-- 

Life's Little Instruction Book #157 

	"Take time to smell the roses."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list