From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSf8j-0001r3-SK for qemu-devel@nongnu.org; Mon, 21 Nov 2011 20:27:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSf8e-0004fa-AS for qemu-devel@nongnu.org; Mon, 21 Nov 2011 20:27:13 -0500 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:40583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSf8d-0004er-KJ for qemu-devel@nongnu.org; Mon, 21 Nov 2011 20:27:08 -0500 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 22 Nov 2011 01:24:48 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAM1NHd43555550 for ; Tue, 22 Nov 2011 12:23:24 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAM1QXkH028054 for ; Tue, 22 Nov 2011 12:26:34 +1100 Message-ID: <4ECAFA3D.90309@linux.vnet.ibm.com> Date: Tue, 22 Nov 2011 09:26:21 +0800 From: "Cao,Bing Bu" MIME-Version: 1.0 References: <4EC8DE54.20802@redhat.com> In-Reply-To: <4EC8DE54.20802@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH][V2] Can't screendump without a console List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: armbru@redhat.com, pbonzini@redhat.com Cc: "Cao, Bing Bu" , QEMU Developers When usinge "-vga none -nographic" option. There is no any text and graphic console created in this case. screen dump not supported without console. Signed-off-by: Cao,Bing Bu --- console.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/console.c b/console.c index f6fe441..6071ef3 100644 --- a/console.c +++ b/console.c @@ -184,8 +184,10 @@ void vga_hw_screen_dump(const char *filename) console_select(0); if (consoles[0] && consoles[0]->hw_screen_dump) { consoles[0]->hw_screen_dump(consoles[0]->hw, filename); + } else { + error_printf("no any console,could not screen dump \n"); + return; } - console_select(previous_active_console->index); } -- 1.7.1