All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] dump: let dump_error printf the error reason
@ 2014-08-27 11:18 ` zhanghailiang
  0 siblings, 0 replies; 10+ 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] 10+ messages in thread

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

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

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.