mirror of https://github.com/xemu-project/xemu.git
migration: report SaveStateEntry id and name on failure
This provides helpful information on which entry failed. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20191005220517.24029-5-richardw.yang@linux.intel.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
17d9351bf2
commit
4991f3091e
|
@ -1215,6 +1215,8 @@ int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy)
|
|||
save_section_footer(f, se);
|
||||
|
||||
if (ret < 0) {
|
||||
error_report("failed to save SaveStateEntry with id(name): %d(%s)",
|
||||
se->section_id, se->idstr);
|
||||
qemu_file_set_error(f, ret);
|
||||
}
|
||||
if (ret <= 0) {
|
||||
|
|
Loading…
Reference in New Issue