Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8uro-0008JI-7n for qemu-devel@nongnu.org; Mon, 03 May 2010 08:35:20 -0400 Received: from [140.186.70.92] (port=35577 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8url-0008Hj-5I for qemu-devel@nongnu.org; Mon, 03 May 2010 08:35:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8uri-00023m-Bh for qemu-devel@nongnu.org; Mon, 03 May 2010 08:35:17 -0400 Received: from iksaif.net ([88.191.73.63]:38177) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8uri-00022V-18 for qemu-devel@nongnu.org; Mon, 03 May 2010 08:35:14 -0400 From: Corentin Chary Date: Mon, 3 May 2010 14:31:18 +0200 Message-Id: <1272889879-17563-1-git-send-email-corentincj@iksaif.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 1/2] vnc: Fix compile error on x86_64 with -D_VNC_DEBUG=1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Corentin Chary , Anthony Liguori cc1: warnings being treated as errors vnc-auth-sasl.c: In function =E2=80=98vnc_client_write_sasl=E2=80=99: vnc-auth-sasl.c:50: error: format =E2=80=98%d=E2=80=99 expects type =E2=80= =98int=E2=80=99, but argument 4 has type =E2=80=98size_t=E2=80=99 vnc-auth-sasl.c:50: error: format =E2=80=98%d=E2=80=99 expects type =E2=80= =98int=E2=80=99, but argument 5 has type =E2=80=98size_t=E2=80=99 make: *** [vnc-auth-sasl.o] Error 1 Signed-off-by: Corentin Chary --- vnc-auth-sasl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/vnc-auth-sasl.c b/vnc-auth-sasl.c index acaac0c..a51ddc8 100644 --- a/vnc-auth-sasl.c +++ b/vnc-auth-sasl.c @@ -47,7 +47,8 @@ long vnc_client_write_sasl(VncState *vs) { long ret; =20 - VNC_DEBUG("Write SASL: Pending output %p size %d offset %d Encoded: = %p size %d offset %d\n", + VNC_DEBUG("Write SASL: Pending output %p size %zd offset %zd " + "Encoded: %p size %d offset %d\n", vs->output.buffer, vs->output.capacity, vs->output.offset, vs->sasl.encoded, vs->sasl.encodedLength, vs->sasl.encoded= Offset); =20 --=20 1.7.0.2