[Skiboot] [PATCH] gard: fix compile error on ARM
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Jun 7 14:06:36 AEST 2016
Cédric Le Goater <clg at kaod.org> writes:
> gard can be used on the BMC to query garded records, but currently
> compile fails with :
>
> cc -O2 -Wall -Werror -I. -c gard.c -o gard.o
> gard.c: In function 'do_clear_i':
> gard.c:421:12: error: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' [-Werror=format]
> gard.c: In function 'check_gard_partition':
> gard.c:489:36: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Werror=format]
>
> This patches provides a fix compatible with x86, armel, ppc64.
>
> Signed-off-by: Cédric Le Goater <clg at kaod.org>
> ---
> external/gard/gard.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Thanks! Merged to master as of 92a2732
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list