[PATCH] Fix compilation warning/error in setprop_inplace.c

David Gibson david at gibson.dropbear.id.au
Wed Jun 13 12:31:52 EST 2012


On Tue, Jun 12, 2012 at 02:48:12PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
> 
> When compiling the current code-base with gcc 4.6.1, the following warning
> is raised, which is interpreted as an error:
> 
> cc1: warnings being treated as errors
> tests/setprop_inplace.c: In function ‘main’:
> tests/setprop_inplace.c:62: error: format ‘%016llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
> tests/setprop_inplace.c:68: error: format ‘%016llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
> 
> Use printf format specifiers from <inttypes.h> to solve this.
> 
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

Acked-by: David Gibson <david at gibson.dropbear.id.au>

Thanks.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson


More information about the devicetree-discuss mailing list