From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFveC-0002ie-Vy for qemu-devel@nongnu.org; Fri, 29 Apr 2011 17:54:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFveB-0004ig-9w for qemu-devel@nongnu.org; Fri, 29 Apr 2011 17:54:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFveB-0004iS-03 for qemu-devel@nongnu.org; Fri, 29 Apr 2011 17:54:47 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3TLskic008960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Apr 2011 17:54:46 -0400 Date: Sat, 30 Apr 2011 00:54:38 +0300 From: Alon Levy Message-ID: <20110429215437.GC13837@amber.local> References: <1303979358-4421-1-git-send-email-alevy@redhat.com> <1303979358-4421-3-git-send-email-alevy@redhat.com> <4DBAA8B5.4040008@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DBAA8B5.4040008@redhat.com> Subject: Re: [Qemu-devel] [PATCHv2 2/4] qxl: add mode to debugprint on destroy primary List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org On Fri, Apr 29, 2011 at 02:01:57PM +0200, Gerd Hoffmann wrote: > On 04/28/11 10:29, Alon Levy wrote: > >--- > > hw/qxl.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > >diff --git a/hw/qxl.c b/hw/qxl.c > >index 63e295b..ccd820c 100644 > >--- a/hw/qxl.c > >+++ b/hw/qxl.c > >@@ -1009,7 +1009,7 @@ static void ioport_write(void *opaque, uint32_t addr, uint32_t val) > > break; > > case QXL_IO_DESTROY_PRIMARY: > > PANIC_ON(val != 0); > >- dprint(d, 1, "QXL_IO_DESTROY_PRIMARY\n"); > >+ dprint(d, 1, "QXL_IO_DESTROY_PRIMARY (%s)\n", qxl_mode_to_string(d->mode)); > > qxl_destroy_primary(d); > > break; > > case QXL_IO_DESTROY_SURFACE_WAIT: > > Squash into the first? Maybe there are a few more places where a > pretty-printed mode would be useful? ok, I'll look for more usage ops and do the squash. > > cheers, > Gerd