qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/3] savevm: add comments for qemu_file_get_error()
@ 2013-08-23 10:03 Lei Li
  2013-08-23 10:03 ` [Qemu-devel] [PATCH 2/3] savevm: wrong error set by ram_control_load_hook() Lei Li
  2013-08-23 10:03 ` [Qemu-devel] [PATCH 3/3] arch_init: right return for ram_save_iterate Lei Li
  0 siblings, 2 replies; 5+ messages in thread
From: Lei Li @ 2013-08-23 10:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: Lei Li, quintela, mrhines, anthony, lagarcia, pbonzini

Add comments for qemu_file_get_error(), as its return value
is not very clear.

Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
---
 savevm.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/savevm.c b/savevm.c
index 03fc4d9..95a11f9 100644
--- a/savevm.c
+++ b/savevm.c
@@ -566,6 +566,13 @@ QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops)
     return f;
 }
 
+/*
+ * Get last error for stream f
+ *
+ * Return negative error value if there has been an error on previous
+ * operations, return 0 if no error happened.
+ *
+ */
 int qemu_file_get_error(QEMUFile *f)
 {
     return f->last_error;
-- 
1.7.7.6

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

end of thread, other threads:[~2013-08-23 12:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23 10:03 [Qemu-devel] [PATCH 1/3] savevm: add comments for qemu_file_get_error() Lei Li
2013-08-23 10:03 ` [Qemu-devel] [PATCH 2/3] savevm: wrong error set by ram_control_load_hook() Lei Li
2013-08-23 10:12   ` Paolo Bonzini
2013-08-23 12:37     ` Lei Li
2013-08-23 10:03 ` [Qemu-devel] [PATCH 3/3] arch_init: right return for ram_save_iterate Lei Li

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