From patchwork Tue Aug 9 22:04:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 3332 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A212F241D4 for ; Tue, 9 Aug 2011 22:04:44 +0000 (UTC) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.216.173]) by fiordland.canonical.com (Postfix) with ESMTP id 6976DA182F9 for ; Tue, 9 Aug 2011 22:04:44 +0000 (UTC) Received: by qyk31 with SMTP id 31so2852049qyk.11 for ; Tue, 09 Aug 2011 15:04:44 -0700 (PDT) Received: by 10.229.159.194 with SMTP id k2mr2427449qcx.83.1312927483768; Tue, 09 Aug 2011 15:04:43 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.190.71 with SMTP id dh7cs60656qcb; Tue, 9 Aug 2011 15:04:42 -0700 (PDT) Received: from mr.google.com ([10.216.166.75]) by 10.216.166.75 with SMTP id f53mr4148022wel.55.1312927482272 (num_hops = 1); Tue, 09 Aug 2011 15:04:42 -0700 (PDT) Received: by 10.216.166.75 with SMTP id f53mr2897564wel.55.1312927481151; Tue, 09 Aug 2011 15:04:41 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk [81.2.115.146]) by mx.google.com with ESMTPS id e61si802606wed.143.2011.08.09.15.04.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Aug 2011 15:04:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1QquPb-0005kb-Fn; Tue, 09 Aug 2011 23:04:35 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Gerd Hoffmann Subject: [PATCH] spice-qemu-char.c: Use correct printf format char for ssize_t Date: Tue, 9 Aug 2011 23:04:35 +0100 Message-Id: <1312927475-22082-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 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 --- I note that this seems to have been present since the file was introduced, so presumably nobody up til now has attempted to compile qemu with spice enabled on a 32 bit box... This is present in 0.15 (although not fatal since we don't enable Werror on release builds); is it worth including compile warning fixes in 0.15.1 ? 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 95bf6b6..7ec1a9b 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; }