Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjyJr-0003QH-6p for qemu-devel@nongnu.org; Wed, 18 Mar 2009 12:08:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjyJm-0003OS-9n for qemu-devel@nongnu.org; Wed, 18 Mar 2009 12:08:38 -0400 Received: from [199.232.76.173] (port=40022 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjyJm-0003OL-0t for qemu-devel@nongnu.org; Wed, 18 Mar 2009 12:08:34 -0400 Received: from mx1.redhat.com ([66.187.233.31]:56336) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjyJl-0005Nd-G8 for qemu-devel@nongnu.org; Wed, 18 Mar 2009 12:08:33 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n2IG8X7P012170 for ; Wed, 18 Mar 2009 12:08:33 -0400 Received: from zweiblum.home.kraxel.org (vpn-10-91.str.redhat.com [10.32.10.91]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n2IG8VWB020176 for ; Wed, 18 Mar 2009 12:08:33 -0400 Message-ID: <49C11C7D.5050004@redhat.com> Date: Wed, 18 Mar 2009 17:08:29 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080709010604020709000904" 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" This is a multi-part message in MIME format. --------------080709010604020709000904 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, $subject says all please apply, Gerd --------------080709010604020709000904 Content-Type: text/plain; name="0002-vnc-fix-printf-warnings-showing-up-with-VNC_DEBUG-e.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0002-vnc-fix-printf-warnings-showing-up-with-VNC_DEBUG-e.pat"; filename*1="ch" >From b3ace4795120637bc8f0c6ec3202f5933ffa9dfa Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 17 Mar 2009 09:50:02 +0100 Subject: [PATCH 2/3] vnc: fix printf warnings showing up with VNC_DEBUG enabled. Signed-off-by: Gerd Hoffmann --- vnc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vnc.c b/vnc.c index bdf9431..0daaeac 100644 --- a/vnc.c +++ b/vnc.c @@ -948,7 +948,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()); } @@ -968,7 +968,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); @@ -1053,7 +1053,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()); } @@ -1069,7 +1069,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 --------------080709010604020709000904--