From patchwork Wed Sep 7 07:38:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 113715 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D4239B6F7E for ; Wed, 7 Sep 2011 17:44:53 +1000 (EST) Received: from localhost ([::1]:45126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1CjT-0000LP-US for incoming@patchwork.ozlabs.org; Wed, 07 Sep 2011 03:39:39 -0400 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 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 p877ckmG018517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 7 Sep 2011 03:38:46 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p877cfY4015537; Wed, 7 Sep 2011 03:38:43 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 916C740A85; Wed, 7 Sep 2011 09:38:35 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Peter Maydell , Gerd Hoffmann Subject: [Qemu-devel] [PATCH 1/6] spice-qemu-char.c: Use correct printf format char for ssize_t X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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; }