[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] dump: let dump_error printf the error reason
From: |
zhanghailiang |
Subject: |
[Qemu-devel] [PATCH] dump: let dump_error printf the error reason |
Date: |
Wed, 27 Aug 2014 19:18:53 +0800 |
The second parameter of dump_error is unused, but one purpose of
using this function is to report the error info.
Signed-off-by: zhanghailiang <address@hidden>
---
dump.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dump.c b/dump.c
index 71d3e94..0f44e9d 100644
--- a/dump.c
+++ b/dump.c
@@ -83,6 +83,9 @@ static int dump_cleanup(DumpState *s)
static void dump_error(DumpState *s, const char *reason)
{
+ if (reason) {
+ error_report("%s", reason);
+ }
dump_cleanup(s);
}
--
1.7.12.4
- [Qemu-devel] [PATCH] dump: let dump_error printf the error reason,
zhanghailiang <=