]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
migration/ram: Fix hexadecimal format string specifier
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 3 Nov 2020 11:25:58 +0000 (12:25 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 12 Nov 2020 14:02:41 +0000 (14:02 +0000)
The '%u' conversion specifier is for decimal notation.
When prefixing a format with '0x', we want the hexadecimal
specifier ('%x').

Inspired-by: Dov Murik <dovmurik@linux.vnet.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20201103112558.2554390-5-philmd@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c

index add5396a62f930bc0712fa93d3ad1c685eeb272f..7811cde643a1f0ebf12e870373ba5eef07a6436d 100644 (file)
@@ -3741,7 +3741,7 @@ int ram_dirty_bitmap_reload(MigrationState *s, RAMBlock *block)
     }
 
     if (end_mark != RAMBLOCK_RECV_BITMAP_ENDING) {
-        error_report("%s: ramblock '%s' end mark incorrect: 0x%"PRIu64,
+        error_report("%s: ramblock '%s' end mark incorrect: 0x%"PRIx64,
                      __func__, block->idstr, end_mark);
         ret = -EINVAL;
         goto out;