Revisión | 9200265838e5e6f43b1acdafb610d0a813b801c1 (tree) |
---|---|
Tiempo | 2022-01-28 23:38:23 |
Autor | David Edmondson <david.edmondson@orac...> |
Commiter | Juan Quintela |
migration: Report the error returned when save_live_iterate fails
Should qemu_savevm_state_iterate() encounter a failure when calling a
particular save_live_iterate function, report the error code returned
by the function.
Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
@@ -1298,8 +1298,9 @@ int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy) | ||
1298 | 1298 | save_section_footer(f, se); |
1299 | 1299 | |
1300 | 1300 | if (ret < 0) { |
1301 | - error_report("failed to save SaveStateEntry with id(name): %d(%s)", | |
1302 | - se->section_id, se->idstr); | |
1301 | + error_report("failed to save SaveStateEntry with id(name): " | |
1302 | + "%d(%s): %d", | |
1303 | + se->section_id, se->idstr, ret); | |
1303 | 1304 | qemu_file_set_error(f, ret); |
1304 | 1305 | } |
1305 | 1306 | if (ret <= 0) { |