From patchwork Wed Mar 31 20:12:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 49177 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 F38EFB7D07 for ; Thu, 1 Apr 2010 07:13:37 +1100 (EST) Received: from localhost ([127.0.0.1]:34358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nx4I8-0006PU-Pd for incoming@patchwork.ozlabs.org; Wed, 31 Mar 2010 16:13:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nx4HD-0006GQ-IQ for qemu-devel@nongnu.org; Wed, 31 Mar 2010 16:12:35 -0400 Received: from [140.186.70.92] (port=58115 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nx4HC-0006GC-90 for qemu-devel@nongnu.org; Wed, 31 Mar 2010 16:12:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nx4HA-00072m-O9 for qemu-devel@nongnu.org; Wed, 31 Mar 2010 16:12:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40256) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nx4HA-00072c-Go for qemu-devel@nongnu.org; Wed, 31 Mar 2010 16:12:32 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2VKCVAh005503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 31 Mar 2010 16:12:31 -0400 Received: from localhost (vpn-9-191.rdu.redhat.com [10.11.9.191]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2VKCS2u020460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 31 Mar 2010 16:12:30 -0400 Date: Wed, 31 Mar 2010 17:12:26 -0300 From: Luiz Capitulino To: qemu-devel@nongnu.org Message-ID: <20100331171226.11f8e3c2@redhat.com> Organization: Red Hat Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: lmr@redhat.com Subject: [Qemu-devel] [PATCH] Monitor: Convert do_screen_dump() to QObject 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 Trivial, as it never fails, doesn't have output nor return any data. Note that it's also available under QMP, as kvm-autotest needs this. Signed-off-by: Luiz Capitulino --- monitor.c | 3 ++- qemu-monitor.hx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index 389485d..d2d2504 100644 --- a/monitor.c +++ b/monitor.c @@ -1163,9 +1163,10 @@ static int do_change(Monitor *mon, const QDict *qdict, QObject **ret_data) return ret; } -static void do_screen_dump(Monitor *mon, const QDict *qdict) +static int do_screen_dump(Monitor *mon, const QDict *qdict, QObject **ret_data) { vga_hw_screen_dump(qdict_get_str(qdict, "filename")); + return 0; } static void do_logfile(Monitor *mon, const QDict *qdict) diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 62fa346..5ea5748 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -199,7 +199,8 @@ ETEXI .args_type = "filename:F", .params = "filename", .help = "save screen into PPM image 'filename'", - .mhandler.cmd = do_screen_dump, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_screen_dump, }, STEXI