From: Juan Quintela <quintela@redhat.com>
To: qemu-devel@nongnu.org
Cc: Lei Li <lilei@linux.vnet.ibm.com>, anthony@codemonkey.ws
Subject: [Qemu-devel] [PATCH 1/9] savevm: add comments for qemu_file_get_error()
Date: Tue, 24 Sep 2013 14:03:15 +0200 [thread overview]
Message-ID: <1380024203-25897-2-git-send-email-quintela@redhat.com> (raw)
In-Reply-To: <1380024203-25897-1-git-send-email-quintela@redhat.com>
From: Lei Li <lilei@linux.vnet.ibm.com>
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>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
savevm.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/savevm.c b/savevm.c
index 4a3c819..a834c6f 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.8.3.1
next prev parent reply other threads:[~2013-09-24 12:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 12:03 [Qemu-devel] [PULL 0/9] migration queue Juan Quintela
2013-09-24 12:03 ` Juan Quintela [this message]
2013-09-24 12:03 ` [Qemu-devel] [PATCH 2/9] savevm: fix wrong initialization by ram_control_load_hook Juan Quintela
2013-09-24 12:03 ` [Qemu-devel] [PATCH 3/9] arch_init: right return for ram_save_iterate Juan Quintela
2013-09-24 12:03 ` [Qemu-devel] [PATCH 4/9] rdma: clean up of qemu_rdma_cleanup() Juan Quintela
2013-09-24 12:03 ` [Qemu-devel] [PATCH 5/9] rdma: constify ram_chunk_{index, start, end} Juan Quintela
2013-09-24 12:03 ` [Qemu-devel] [PATCH 6/9] migration: add version supporting macros for struct pointer Juan Quintela
2013-09-24 12:03 ` [Qemu-devel] [PATCH 7/9] migration: Fix debug print type Juan Quintela
2013-09-24 12:03 ` [Qemu-devel] [PATCH 8/9] arch_init: make is_zero_page accept size Juan Quintela
2013-10-07 9:15 ` Peter Lieven
2013-09-24 12:03 ` [Qemu-devel] [PATCH 9/9] migration: ram_handle_compressed Juan Quintela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1380024203-25897-2-git-send-email-quintela@redhat.com \
--to=quintela@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=lilei@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).