qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/2] vnc: Fix compile error on x86_64 with -D_VN


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 1/2] vnc: Fix compile error on x86_64 with -D_VNC_DEBUG=1
Date: Mon, 03 May 2010 12:15:23 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

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<address@hidden>

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);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]