xsm: fix clang build
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 11 Sep 2018 09:01:13 +0000 (11:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2018 09:01:13 +0000 (11:01 +0200)
commit33daee93dcc52a53edb07bc902583957c2e1f853
tree7a9ebac99d1b5d09474ba4e3426961263834f954
parent63f9a08a3eadf9b1969fcb5cbd7590168cea6316
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>
xen/xsm/flask/ss/ebitmap.c