diff options
author | Alex Bligh <alex@alex.org.uk> | 2014-07-19 10:09:51 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-08-09 00:06:32 +0400 |
commit | a3f1f040d2454b5328178393843656c8bbd0429c (patch) | |
tree | 1af490b2d5d324d5ae089dd3de7c06e096bf0417 /arch_init.c | |
parent | 5bb4c35dcac527be2e174aacf8aad909620bc5e7 (diff) |
Show length mismatch error is hex
When live migrate fails due to a section length mismatch we currently
see an error message like:
Length mismatch: 0000:00:03.0/virtio-net-pci.rom: 10000 in != 20000
The section lengths are in fact in hex, so this should read
Length mismatch: 0000:00:03.0/virtio-net-pci.rom: 0x10000 in != 0x20000
Correct the error string to reflect this.
Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'arch_init.c')
-rw-r--r-- | arch_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch_init.c b/arch_init.c index 8ddaf35191..28ece769d8 100644 --- a/arch_init.c +++ b/arch_init.c @@ -1072,8 +1072,8 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id) QTAILQ_FOREACH(block, &ram_list.blocks, next) { if (!strncmp(id, block->idstr, sizeof(id))) { if (block->length != length) { - error_report("Length mismatch: %s: " RAM_ADDR_FMT - " in != " RAM_ADDR_FMT, id, length, + error_report("Length mismatch: %s: 0x" RAM_ADDR_FMT + " in != 0x" RAM_ADDR_FMT, id, length, block->length); ret = -EINVAL; } |