From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFmOX-0002wU-Py for qemu-devel@nongnu.org; Fri, 29 Apr 2011 08:02:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFmOW-0008AN-Ua for qemu-devel@nongnu.org; Fri, 29 Apr 2011 08:02:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFmOW-0008AC-KD for qemu-devel@nongnu.org; Fri, 29 Apr 2011 08:02:00 -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 p3TC1xug012623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Apr 2011 08:01:59 -0400 Message-ID: <4DBAA8B5.4040008@redhat.com> Date: Fri, 29 Apr 2011 14:01:57 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1303979358-4421-1-git-send-email-alevy@redhat.com> <1303979358-4421-3-git-send-email-alevy@redhat.com> In-Reply-To: <1303979358-4421-3-git-send-email-alevy@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Alon Levy Cc: qemu-devel@nongnu.org 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? cheers, Gerd