]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
tools/xen-access: use PRI_xen_pfn
authorWei Liu <wei.liu2@citrix.com>
Thu, 3 Sep 2015 18:27:47 +0000 (19:27 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 4 Sep 2015 13:59:10 +0000 (14:59 +0100)
Otherwise when building with 32bit compiler, we get:

xen-access.c: In function 'xenaccess_init':
xen-access.c:263:5: error: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'xen_pfn_t' [-Werror=format]
cc1: all warnings being treated as errors

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
tools/tests/xen-access/xen-access.c

index cdb8f4e50a30521a735f001f5254d09d5bc2441a..a52ca6e3367142a765f228cadb773d5c6e2cb427 100644 (file)
@@ -260,7 +260,7 @@ xenaccess_t *xenaccess_init(xc_interface **xch_r, domid_t domain_id)
         goto err;
     }
 
-    DPRINTF("max_gpfn = %"PRIx64"\n", xenaccess->max_gpfn);
+    DPRINTF("max_gpfn = %"PRI_xen_pfn"\n", xenaccess->max_gpfn);
 
     return xenaccess;