From patchwork Wed Jan 20 12:07:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 43273 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C3FD6B7C8D for ; Wed, 20 Jan 2010 23:20:24 +1100 (EST) Received: from localhost ([127.0.0.1]:35071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXZVG-0005ie-EL for incoming@patchwork.ozlabs.org; Wed, 20 Jan 2010 07:17:42 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXZLi-0002ju-D3 for qemu-devel@nongnu.org; Wed, 20 Jan 2010 07:07:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXZLd-0002gu-KB for qemu-devel@nongnu.org; Wed, 20 Jan 2010 07:07:49 -0500 Received: from [199.232.76.173] (port=55594 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXZLd-0002ga-1A for qemu-devel@nongnu.org; Wed, 20 Jan 2010 07:07:45 -0500 Received: from oxygen.pond.sub.org ([213.239.205.148]:46852) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXZLc-0007iJ-Du for qemu-devel@nongnu.org; Wed, 20 Jan 2010 07:07:44 -0500 Received: from blackfin.pond.sub.org (pD9E3BC04.dip.t-dialin.net [217.227.188.4]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 31F4C2DD2F5 for ; Wed, 20 Jan 2010 13:07:36 +0100 (CET) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id C6E68406; Wed, 20 Jan 2010 13:07:35 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Wed, 20 Jan 2010 13:07:33 +0100 Message-Id: <1263989255-13755-5-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.6.6 In-Reply-To: <1263989255-13755-1-git-send-email-armbru@redhat.com> References: <1263989255-13755-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [Qemu-devel] [PATCH v2 4/6] monitor: convert do_physical_memory_save() to QError X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Markus Armbruster --- monitor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/monitor.c b/monitor.c index e63d0a7..816f6fd 100644 --- a/monitor.c +++ b/monitor.c @@ -1344,7 +1344,7 @@ static void do_physical_memory_save(Monitor *mon, const QDict *qdict, f = fopen(filename, "wb"); if (!f) { - monitor_printf(mon, "could not open '%s'\n", filename); + qemu_error_new(QERR_OPEN_FILE_FAILED, filename); return; } while (size != 0) {