Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lkcwu-00028w-CZ for qemu-devel@nongnu.org; Fri, 20 Mar 2009 07:31:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lkcwo-000273-Oy for qemu-devel@nongnu.org; Fri, 20 Mar 2009 07:31:39 -0400 Received: from [199.232.76.173] (port=44562 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lkcwo-00026y-Ek for qemu-devel@nongnu.org; Fri, 20 Mar 2009 07:31:34 -0400 Received: from mx2.redhat.com ([66.187.237.31]:50219) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lkcwn-0000yS-Sp for qemu-devel@nongnu.org; Fri, 20 Mar 2009 07:31:34 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n2KBVXCS017061 for ; Fri, 20 Mar 2009 07:31:33 -0400 From: Gerd Hoffmann Date: Fri, 20 Mar 2009 12:31:28 +0100 Message-Id: <1237548689-8677-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1237548689-8677-1-git-send-email-kraxel@redhat.com> References: <1237548689-8677-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] vnc: fix printf warnings showing up with VNC_DEBUG enabled. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- vnc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vnc.c b/vnc.c index f723d04..de9edea 100644 --- a/vnc.c +++ b/vnc.c @@ -957,7 +957,7 @@ long vnc_client_write_buf(VncState *vs, const uint8_t *data, size_t datalen) } else #endif /* CONFIG_VNC_TLS */ ret = send(vs->csock, data, datalen, 0); - VNC_DEBUG("Wrote wire %p %d -> %ld\n", data, datalen, ret); + VNC_DEBUG("Wrote wire %p %zd -> %ld\n", data, datalen, ret); return vnc_client_io_error(vs, ret, socket_error()); } @@ -977,7 +977,7 @@ static long vnc_client_write_plain(VncState *vs) long ret; #ifdef CONFIG_VNC_SASL - VNC_DEBUG("Write Plain: Pending output %p size %d offset %d. Wait SSF %d\n", + VNC_DEBUG("Write Plain: Pending output %p size %zd offset %zd. Wait SSF %d\n", vs->output.buffer, vs->output.capacity, vs->output.offset, vs->sasl.waitWriteSSF); @@ -1062,7 +1062,7 @@ long vnc_client_read_buf(VncState *vs, uint8_t *data, size_t datalen) } else #endif /* CONFIG_VNC_TLS */ ret = recv(vs->csock, data, datalen, 0); - VNC_DEBUG("Read wire %p %d -> %ld\n", data, datalen, ret); + VNC_DEBUG("Read wire %p %zd -> %ld\n", data, datalen, ret); return vnc_client_io_error(vs, ret, socket_error()); } @@ -1078,7 +1078,7 @@ long vnc_client_read_buf(VncState *vs, uint8_t *data, size_t datalen) static long vnc_client_read_plain(VncState *vs) { int ret; - VNC_DEBUG("Read plain %p size %d offset %d\n", + VNC_DEBUG("Read plain %p size %zd offset %zd\n", vs->input.buffer, vs->input.capacity, vs->input.offset); buffer_reserve(&vs->input, 4096); ret = vnc_client_read_buf(vs, buffer_end(&vs->input), 4096); -- 1.6.1.3