From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEyuR-00085x-0V for qemu-devel@nongnu.org; Fri, 21 Sep 2012 04:48:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEyuM-0004sp-Mv for qemu-devel@nongnu.org; Fri, 21 Sep 2012 04:48:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEyuM-0004sf-EM for qemu-devel@nongnu.org; Fri, 21 Sep 2012 04:48:22 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8L8mLuU015671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Sep 2012 04:48:21 -0400 From: Juan Quintela Date: Fri, 21 Sep 2012 10:47:27 +0200 Message-Id: <1348217255-22441-34-git-send-email-quintela@redhat.com> In-Reply-To: <1348217255-22441-1-git-send-email-quintela@redhat.com> References: <1348217255-22441-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 33/41] savevm: make qemu_fill_buffer() be consistent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org It was setting last_error directly once, and with the helper the other time. Signed-off-by: Juan Quintela --- savevm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/savevm.c b/savevm.c index 8ddb9d5..4e4aa3c 100644 --- a/savevm.c +++ b/savevm.c @@ -501,7 +501,7 @@ static void qemu_fill_buffer(QEMUFile *f) f->buf_size += len; f->buf_offset += len; } else if (len == 0) { - f->last_error = -EIO; + qemu_file_set_error(f, -EIO); } else if (len != -EAGAIN) qemu_file_set_error(f, len); } -- 1.7.11.4