Skip to contentSkip to conversation

libxc: use PRI_xen_pfn in xc_dom_load_acpi

PATCH In review Wei Liu 2 participants 3 messages Sep 28, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 libxc: use PRI_xen_pfn in xc_dom_load_acpi

This fixes compilation on ARM.

---
Cc: Ian Jackson <[email protected]>
Cc: Boris Ostrovsky <[email protected]>

---
 tools/libxc/xc_dom_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xc_dom_core.c +1 -1
index 5884cdb..5326d36 100644
@@ -1113,7 +1113,7 @@ static int xc_dom_load_acpi(struct xc_dom_image *dom)
                                    PROT_READ | PROT_WRITE, base);
         if ( !ptr )
         {
-            DOMPRINTF("%s: Can't map %d pages at 0x%lx",
+            DOMPRINTF("%s: Can't map %d pages at 0x%"PRI_xen_pfn,
                       __FUNCTION__, num_pages, base);
             goto err;
         }
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Wei Liu

This fixes compilation on ARM.

Quoted 12 lines

---
Cc: Ian Jackson <[email protected]>
Cc: Boris Ostrovsky <[email protected]>

---
 tools/libxc/xc_dom_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xc_dom_core.c +0 -0
index 5884cdb..5326d36 100644

tools/libxc/xc_dom_core.c static int xc_dom_load_acpi(struct xc_dom_image *dom) · line 1119

Quoted 8 lines
tools/libxc/xc_dom_core.c +1 -1
@@ -1113,7 +1113,7 @@ static int xc_dom_load_acpi(struct xc_dom_image *dom)
                                    PROT_READ | PROT_WRITE, base);
         if ( !ptr )
         {
-            DOMPRINTF("%s: Can't map %d pages at 0x%lx",
+            DOMPRINTF("%s: Can't map %d pages at 0x%"PRI_xen_pfn,
                       __FUNCTION__, num_pages, base);
             goto err;
         }

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel