]> Git Repo - qemu.git/commitdiff
xen: fix compilation on 32-bit hosts
authorIgor Druzhinin <[email protected]>
Sat, 22 Jul 2017 00:32:56 +0000 (17:32 -0700)
committerStefano Stabellini <[email protected]>
Sat, 22 Jul 2017 00:32:56 +0000 (17:32 -0700)
Signed-off-by: Igor Druzhinin <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
hw/i386/xen/xen-mapcache.c

index 2a1fbd13ccad789fb75710b9a0efc01a1761278b..bb1078c681eee66c6666f61490dbbfb53340fcb6 100644 (file)
@@ -527,7 +527,7 @@ static uint8_t *xen_replace_cache_entry_unlocked(hwaddr old_phys_addr,
         entry = entry->next;
     }
     if (!entry) {
-        DPRINTF("Trying to update an entry for %lx " \
+        DPRINTF("Trying to update an entry for "TARGET_FMT_plx \
                 "that is not in the mapcache!\n", old_phys_addr);
         return NULL;
     }
@@ -535,15 +535,16 @@ static uint8_t *xen_replace_cache_entry_unlocked(hwaddr old_phys_addr,
     address_index  = new_phys_addr >> MCACHE_BUCKET_SHIFT;
     address_offset = new_phys_addr & (MCACHE_BUCKET_SIZE - 1);
 
-    fprintf(stderr, "Replacing a dummy mapcache entry for %lx with %lx\n",
-            old_phys_addr, new_phys_addr);
+    fprintf(stderr, "Replacing a dummy mapcache entry for "TARGET_FMT_plx \
+            " with "TARGET_FMT_plx"\n", old_phys_addr, new_phys_addr);
 
     xen_remap_bucket(entry, entry->vaddr_base,
                      cache_size, address_index, false);
     if (!test_bits(address_offset >> XC_PAGE_SHIFT,
                 test_bit_size >> XC_PAGE_SHIFT,
                 entry->valid_mapping)) {
-        DPRINTF("Unable to update a mapcache entry for %lx!\n", old_phys_addr);
+        DPRINTF("Unable to update a mapcache entry for "TARGET_FMT_plx"!\n",
+                old_phys_addr);
         return NULL;
     }
 
This page took 0.029285 seconds and 4 git commands to generate.