Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lkh7y-0008Q1-TK for qemu-devel@nongnu.org; Fri, 20 Mar 2009 11:59:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lkh7x-0008Pd-MW for qemu-devel@nongnu.org; Fri, 20 Mar 2009 11:59:22 -0400 Received: from [199.232.76.173] (port=60731 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lkh7x-0008Pa-EG for qemu-devel@nongnu.org; Fri, 20 Mar 2009 11:59:21 -0400 Received: from savannah.gnu.org ([199.232.41.3]:34615 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lkh7w-0008Sk-V9 for qemu-devel@nongnu.org; Fri, 20 Mar 2009 11:59:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lkh7v-0005qF-Ey for qemu-devel@nongnu.org; Fri, 20 Mar 2009 15:59:19 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lkh7v-0005qB-7S for qemu-devel@nongnu.org; Fri, 20 Mar 2009 15:59:19 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 20 Mar 2009 15:59:19 +0000 Subject: [Qemu-devel] [6861] 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 Revision: 6861 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6861 Author: aliguori Date: 2009-03-20 15:59:18 +0000 (Fri, 20 Mar 2009) Log Message: ----------- vnc: fix printf warnings showing up with VNC_DEBUG enabled. (Gerd Hoffmann) Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/vnc.c Modified: trunk/vnc.c =================================================================== --- trunk/vnc.c 2009-03-20 15:59:14 UTC (rev 6860) +++ trunk/vnc.c 2009-03-20 15:59:18 UTC (rev 6861) @@ -957,7 +957,7 @@ } 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 @@ 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 @@ } 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 @@ 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);