[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xsm: fix clang build



On Wed, Sep 05, 2018 at 04:46:06PM +0200, Roger Pau Monne wrote:
> ebitmap.c:244:32: error: invalid conversion specifier 'Z' 
> [-Werror,-Wformat-invalid-specifier]
>                "match my size %Zd (high bit was %d)\n", mapunit,
>                               ~^
> ebitmap.c:245:16: error: format specifies type 'int' but the argument has 
> type 'unsigned long'
>       [-Werror,-Wformat]
>                sizeof(u64) * 8, e->highbit);
>                ^~~~~~~~~~~~~~~
> ebitmap.c:245:33: error: data argument not used by format string 
> [-Werror,-Wformat-extra-args]
>                sizeof(u64) * 8, e->highbit);
> 
> Use %zd instead of %Zd, which is compliant with C99.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.