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

[Xen-changelog] [xen master] xsm: fix clang build



commit 33daee93dcc52a53edb07bc902583957c2e1f853
Author:     Roger Pau Monné <roger.pau@xxxxxxxxxx>
AuthorDate: Tue Sep 11 11:01:13 2018 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Sep 11 11:01:13 2018 +0200

    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@xxxxxxxxxx>
    Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    Acked-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
---
 xen/xsm/flask/ss/ebitmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/xsm/flask/ss/ebitmap.c b/xen/xsm/flask/ss/ebitmap.c
index bb3ec8e7c9..e1d0a586a7 100644
--- a/xen/xsm/flask/ss/ebitmap.c
+++ b/xen/xsm/flask/ss/ebitmap.c
@@ -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;
     }
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

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