Mention the domain name that is being saved and remove the unneeded
variable that only stores a constant.
---
src/qemu/qemu_driver.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index f51e766..23eb4fb 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -3118,7 +3118,6 @@ qemuDomainManagedSave(virDomainPtr dom, unsigned int flags)
virDomainObjPtr vm;
char *name = NULL;
int ret = -1;
- int compressed;
virCheckFlags(VIR_DOMAIN_SAVE_BYPASS_CACHE |
VIR_DOMAIN_SAVE_RUNNING |
@@ -3144,10 +3143,10 @@ qemuDomainManagedSave(virDomainPtr dom, unsigned int flags)
if (!(name = qemuDomainManagedSavePath(driver, vm)))
goto cleanup;
- VIR_INFO("Saving state to %s", name);
+ VIR_INFO("Saving state of domain '%s' to '%s'",
vm->def->name, name);
- compressed = QEMU_SAVE_FORMAT_RAW;
- if ((ret = qemuDomainSaveInternal(driver, dom, vm, name, compressed,
+ if ((ret = qemuDomainSaveInternal(driver, dom, vm, name,
+ QEMU_SAVE_FORMAT_RAW,
NULL, flags)) == 0)
vm->hasManagedSave = true;
--
1.8.2.1