qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] savevm: print migration failure to stderr rather than monitor
@ 2011-01-07  7:18 Alex Williamson
  2011-01-07  8:51 ` [Qemu-devel] " Jan Kiszka
  2011-01-07 15:58 ` [Qemu-devel] [PATCH V2] savevm: use error_report for vmstate_save error Alex Williamson
  0 siblings, 2 replies; 23+ messages in thread
From: Alex Williamson @ 2011-01-07  7:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: alex.williamson, quintela

monitor_print only does anything for foreground commands, so we
don't ever see this error message in the case of a 'migrate -d'.
It also doesn't do much good to print a monitor error message if
the migration is being driven by something like libvirt.  Both
of these seem to be the typical usage scenarios, so we might as
well print this error to stderr so it can at least be found in
the log messages.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---

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

diff --git a/savevm.c b/savevm.c
index 90aa237..c6b9b01 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);
+            fprintf(stderr, "cannot migrate with device '%s'\n", se->idstr);
             return r;
         }
     }

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2011-01-11 22:40 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07  7:18 [Qemu-devel] [PATCH] savevm: print migration failure to stderr rather than monitor Alex Williamson
2011-01-07  8:51 ` [Qemu-devel] " Jan Kiszka
2011-01-07 15:39   ` Alex Williamson
2011-01-07 15:46     ` Jan Kiszka
2011-01-07 15:56       ` Alex Williamson
2011-01-07 15:58 ` [Qemu-devel] [PATCH V2] savevm: use error_report for vmstate_save error Alex Williamson
2011-01-07 16:03   ` [Qemu-devel] " Jan Kiszka
2011-01-07 16:10     ` Alex Williamson
2011-01-07 16:27       ` Jan Kiszka
2011-01-07 18:41         ` Alex Williamson
2011-01-07 18:39   ` [Qemu-devel] [PATCH v3] savevm: Fix no_migrate Alex Williamson
2011-01-07 18:47     ` [Qemu-devel] " Jan Kiszka
2011-01-09  9:57       ` Michael S. Tsirkin
2011-01-09 11:44         ` Blue Swirl
2011-01-07 22:13     ` [Qemu-devel] [PATCH v4] " Alex Williamson
2011-01-09 10:02       ` [Qemu-devel] " Michael S. Tsirkin
2011-01-09 10:47       ` Michael S. Tsirkin
2011-01-10 17:47         ` Alex Williamson
2011-01-10 21:19           ` Michael S. Tsirkin
2011-01-10 10:24       ` Daniel P. Berrange
2011-01-10 14:52         ` Alex Williamson
2011-01-11 21:39       ` [Qemu-devel] [PATCH v5] " Alex Williamson
2011-01-11 22:39         ` [Qemu-devel] " Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).