[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] sheepdog: Fix error message if failed to load vms
From: |
Fam Zheng |
Subject: |
[Qemu-trivial] [PATCH] sheepdog: Fix error message if failed to load vmstate |
Date: |
Tue, 2 Jun 2015 17:32:41 +0800 |
Signed-off-by: Fam Zheng <address@hidden>
---
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
- [Qemu-trivial] [PATCH] sheepdog: Fix error message if failed to load vmstate,
Fam Zheng <=