From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8zFJ-00015o-23 for qemu-devel@nongnu.org; Mon, 03 May 2010 13:15:53 -0400 Received: from [140.186.70.92] (port=52516 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8zFG-000101-D3 for qemu-devel@nongnu.org; Mon, 03 May 2010 13:15:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8zEu-0001Rn-Ec for qemu-devel@nongnu.org; Mon, 03 May 2010 13:15:30 -0400 Received: from mail-gx0-f209.google.com ([209.85.217.209]:41851) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8zEu-0001Rf-BZ for qemu-devel@nongnu.org; Mon, 03 May 2010 13:15:28 -0400 Received: by gxk1 with SMTP id 1so1449302gxk.16 for ; Mon, 03 May 2010 10:15:27 -0700 (PDT) Message-ID: <4BDF04AB.70509@codemonkey.ws> Date: Mon, 03 May 2010 12:15:23 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1/2] vnc: Fix compile error on x86_64 with -D_VNC_DEBUG=1 References: <1272889879-17563-1-git-send-email-corentincj@iksaif.net> In-Reply-To: <1272889879-17563-1-git-send-email-corentincj@iksaif.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Corentin Chary Cc: qemu-devel@nongnu.org On 05/03/2010 07:31 AM, Corentin Chary wrote: > cc1: warnings being treated as errors > vnc-auth-sasl.c: In function ‘vnc_client_write_sasl’: > vnc-auth-sasl.c:50: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘size_t’ > vnc-auth-sasl.c:50: error: format ‘%d’ expects type ‘int’, but argument 5 has type ‘size_t’ > make: *** [vnc-auth-sasl.o] Error 1 > > Signed-off-by: Corentin Chary > Applied 1/2. Thanks. Regards, Anthony Liguori > --- > 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; > > - 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.encodedOffset); > >