qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] dump: let dump_error printf the error reason
@ 2014-08-27 11:18 zhanghailiang
  2014-08-27 13:18 ` Luiz Capitulino
  0 siblings, 1 reply; 5+ messages in thread
From: zhanghailiang @ 2014-08-27 11:18 UTC (permalink / raw)
  To: qemu-devel
  Cc: zhanghailiang, qemu-trivial, luonengjun, peter.huangpeng,
	lcapitulino, lersek

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 <zhang.zhanghailiang@huawei.com>
---
 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

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

end of thread, other threads:[~2014-09-01  7:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27 11:18 [Qemu-devel] [PATCH] dump: let dump_error printf the error reason zhanghailiang
2014-08-27 13:18 ` Luiz Capitulino
2014-08-29  8:06   ` zhanghailiang
2014-08-29 12:55     ` Luiz Capitulino
2014-09-01  7:40       ` zhanghailiang

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).