Received: from eggs.gnu.org ([2001:4830:134:3::10]:56503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VORL6-0003jb-Au for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:03:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VORL0-0007cR-7O for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:03:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VORKz-0007cK-Vb for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:03:30 -0400 From: Juan Quintela Date: Tue, 24 Sep 2013 14:03:15 +0200 Message-Id: <1380024203-25897-2-git-send-email-quintela@redhat.com> In-Reply-To: <1380024203-25897-1-git-send-email-quintela@redhat.com> References: <1380024203-25897-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 1/9] savevm: add comments for qemu_file_get_error() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Lei Li , anthony@codemonkey.ws From: Lei Li Add comments for qemu_file_get_error(), as its return value is not very clear. Signed-off-by: Lei Li Signed-off-by: Juan Quintela --- 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