]> git.proxmox.com Git - mirror_qemu.git/commit
memsave: Improve and disambiguate error message
authorBorislav Petkov <bp@suse.de>
Sun, 8 Feb 2015 12:14:38 +0000 (13:14 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Mar 2015 05:15:33 +0000 (08:15 +0300)
commit0dc9daf0be2a4ebb3c6529d1c458d8ccf26cd412
treeecb6729cd553f7ff572efb7938bbbcb18c393a5e
parent31da45ce04c5e886369bf88bf727cef5ccb3b12b
memsave: Improve and disambiguate error message

When requesting a size which cannot be read, the error message shows
a different address which is misleading to the user and it looks like
something's wrong with the address parsing. This is because the input
@addr variable is incremented in the memory dumping loop:

(qemu) memsave 0xffffffff8418069c 0xb00000 mem
Invalid addr 0xffffffff849ffe9c specified

Fix that by saving the original address and size and use them in the
error message:

(qemu) memsave 0xffffffff8418069c 0xb00000 mem
Invalid addr 0xffffffff8418069c/size 11534336 specified

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
cpus.c