xsm: fix clang build

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@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
This commit is contained in:
Roger Pau Monné authored and Jan Beulich committed 2018-09-11 11:01:13 +02:00
1 parent 63f9a08a3e
commit 33daee93dc
1 file changed
+1 -1
+1 -1
View File
@@ -241,7 +241,7 @@ int ebitmap_read(struct ebitmap *e, void *fp)
if ( mapunit != sizeof(u64) * 8 )
{
printk(KERN_ERR "Flask: ebitmap: map size %u does not "
"match my size %Zd (high bit was %d)\n", mapunit,
"match my size %zd (high bit was %d)\n", mapunit,
sizeof(u64) * 8, e->highbit);
goto bad;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.