qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH V2] savevm: use error_report for vmstate_save error


From: Alex Williamson
Subject: [Qemu-devel] [PATCH V2] savevm: use error_report for vmstate_save error
Date: Fri, 07 Jan 2011 08:58:37 -0700
User-agent: StGIT/0.14.3

If migration is done in the background with the -d option, mon is
NULL and this error message is lost.  Instead use error_report().

Signed-off-by: Alex Williamson <address@hidden>
---

 savevm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/savevm.c b/savevm.c
index 90aa237..148871d 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1543,7 +1543,7 @@ int qemu_savevm_state_complete(Monitor *mon, QEMUFile *f)
 
         r = vmstate_save(f, se);
         if (r < 0) {
-            monitor_printf(mon, "cannot migrate with device '%s'\n", 
se->idstr);
+            error_report("cannot migrate with device '%s'\n", se->idstr);
             return r;
         }
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]