vnc: Fix compile error on x86_64 with -D_VNC_DEBUG=1
authorCorentin Chary <corentincj@iksaif.net>
Mon, 3 May 2010 12:31:18 +0000 (14:31 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 3 May 2010 17:09:22 +0000 (12:09 -0500)
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 <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc-auth-sasl.c

index acaac0cc4cb62a5618c599c5c6a8505f9c0a4f08..a51ddc8a1863051ec242040e3cc1a1b5bae76c78 100644 (file)
@@ -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);