From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Cif-00065Y-GS for qemu-devel@nongnu.org; Wed, 07 Sep 2011 03:38:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1Cie-0002Aq-9e for qemu-devel@nongnu.org; Wed, 07 Sep 2011 03:38:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Cie-0002AP-2d for qemu-devel@nongnu.org; Wed, 07 Sep 2011 03:38:48 -0400 From: Gerd Hoffmann Date: Wed, 7 Sep 2011 09:38:30 +0200 Message-Id: <1315381115-6171-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1315381115-6171-1-git-send-email-kraxel@redhat.com> References: <1315381115-6171-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/6] spice-qemu-char.c: Use correct printf format char for ssize_t List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Gerd Hoffmann From: Peter Maydell Use the correct printf format string character (%z) for ssize_t. This fixes a compile failure on 32 bit Linux with spice enabled. Signed-off-by: Peter Maydell Signed-off-by: Gerd Hoffmann --- spice-qemu-char.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/spice-qemu-char.c b/spice-qemu-char.c index a9323f3..ac52202 100644 --- a/spice-qemu-char.c +++ b/spice-qemu-char.c @@ -45,7 +45,7 @@ static int vmc_write(SpiceCharDeviceInstance *sin, const uint8_t *buf, int len) p += last_out; } - dprintf(scd, 3, "%s: %lu/%zd\n", __func__, out, len + out); + dprintf(scd, 3, "%s: %zu/%zd\n", __func__, out, len + out); trace_spice_vmc_write(out, len + out); return out; } -- 1.7.1