All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] sheepdog: Fix error message if failed to load vmstate
@ 2015-06-02  9:32 ` Fam Zheng
  0 siblings, 0 replies; 12+ messages in thread
From: Fam Zheng @ 2015-06-02  9:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, qemu-trivial, Jeff Cody, qemu-block

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/sheepdog.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/block/sheepdog.c b/block/sheepdog.c
index bd7cbed..a22f838 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -2556,7 +2556,11 @@ static int do_load_save_vmstate(BDRVSheepdogState *s, uint8_t *data,
         }
 
         if (ret < 0) {
-            error_report("failed to save vmstate %s", strerror(errno));
+            if (load) {
+                error_report("failed to load vmstate %s", strerror(errno));
+            } else {
+                error_report("failed to save vmstate %s", strerror(errno));
+            }
             goto cleanup;
         }
 
-- 
2.4.2



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

end of thread, other threads:[~2015-06-02 19:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02  9:32 [Qemu-trivial] [PATCH] sheepdog: Fix error message if failed to load vmstate Fam Zheng
2015-06-02  9:32 ` [Qemu-devel] " Fam Zheng
2015-06-02  9:45 ` [Qemu-trivial] " Kevin Wolf
2015-06-02  9:45   ` [Qemu-devel] " Kevin Wolf
2015-06-02 10:22   ` [Qemu-trivial] " Fam Zheng
2015-06-02 10:22     ` [Qemu-devel] " Fam Zheng
2015-06-02 10:16 ` [Qemu-trivial] " Michael Tokarev
2015-06-02 10:16   ` [Qemu-devel] " Michael Tokarev
2015-06-02 10:26   ` [Qemu-trivial] " Fam Zheng
2015-06-02 10:26     ` [Qemu-devel] " Fam Zheng
2015-06-02 19:16     ` [Qemu-trivial] [Qemu-block] " John Snow
2015-06-02 19:16       ` [Qemu-devel] " John Snow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.