From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrPSY-0000gn-Qq for qemu-devel@nongnu.org; Thu, 11 Aug 2011 03:13:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrPSX-0000Qo-Cc for qemu-devel@nongnu.org; Thu, 11 Aug 2011 03:13:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrPSX-0000QV-3R for qemu-devel@nongnu.org; Thu, 11 Aug 2011 03:13:41 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7B7DeB7013951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Aug 2011 03:13:40 -0400 From: Gerd Hoffmann Date: Thu, 11 Aug 2011 09:13:36 +0200 Message-Id: <1313046817-5563-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1313046817-5563-1-git-send-email-kraxel@redhat.com> References: <1313046817-5563-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] qxl: unbreak after memory API conversion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alon Levy , Gerd Hoffmann From: Alon Levy Break is only noticable with newer spice-server library (0.8.2 release or 0.9.0 and newer on master branch). ioport_write's val was changed from uint32_t to uint64_t, this broke two printfs. Use PRId64 instead of %d. Signed-off-by: Alon Levy Signed-off-by: Gerd Hoffmann --- hw/qxl.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 7991e70..b34bccf 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1187,7 +1187,7 @@ async_common: } d->current_async = orig_io_port; qemu_mutex_unlock(&d->async_lock); - dprint(d, 2, "start async %d (%d)\n", io_port, val); + dprint(d, 2, "start async %d (%"PRId64")\n", io_port, val); break; default: break; @@ -1303,7 +1303,8 @@ async_common: break; } case QXL_IO_FLUSH_SURFACES_ASYNC: - dprint(d, 1, "QXL_IO_FLUSH_SURFACES_ASYNC (%d) (%s, s#=%d, res#=%d)\n", + dprint(d, 1, "QXL_IO_FLUSH_SURFACES_ASYNC" + " (%"PRId64") (%s, s#=%d, res#=%d)\n", val, qxl_mode_to_string(d->mode), d->guest_surfaces.count, d->num_free_res); qxl_spice_flush_surfaces_async(d); -- 1.7.1