From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUFt-0005HH-HC for qemu-devel@nongnu.org; Mon, 16 Mar 2015 08:36:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXUFj-0003j9-LO for qemu-devel@nongnu.org; Mon, 16 Mar 2015 08:36:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUFj-0003j2-Fm for qemu-devel@nongnu.org; Mon, 16 Mar 2015 08:36:15 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 23364C1F91 for ; Mon, 16 Mar 2015 12:36:15 +0000 (UTC) From: "Daniel P. Berrange" Date: Mon, 16 Mar 2015 12:36:03 +0000 Message-Id: <1426509364-19513-3-git-send-email-berrange@redhat.com> In-Reply-To: <1426509364-19513-1-git-send-email-berrange@redhat.com> References: <1426509364-19513-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] ui: replace printf() calls with VNC_DEBUG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Handling of VNC audio messages results in printfs to the console. This is of no use to anyone in production, so should be using the normal VNC_DEBUG macro instead. Signed-off-by: Daniel P. Berrange --- ui/vnc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 6f9b718..80dc63b 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -2400,34 +2400,34 @@ static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) case 4: vs->as.fmt = AUD_FMT_U32; break; case 5: vs->as.fmt = AUD_FMT_S32; break; default: - printf("Invalid audio format %d\n", read_u8(data, 4)); + VNC_DEBUG("Invalid audio format %d\n", read_u8(data, 4)); vnc_client_error(vs); break; } vs->as.nchannels = read_u8(data, 5); if (vs->as.nchannels != 1 && vs->as.nchannels != 2) { - printf("Invalid audio channel coount %d\n", - read_u8(data, 5)); + VNC_DEBUG("Invalid audio channel coount %d\n", + read_u8(data, 5)); vnc_client_error(vs); break; } vs->as.freq = read_u32(data, 6); break; default: - printf ("Invalid audio message %d\n", read_u8(data, 4)); + VNC_DEBUG("Invalid audio message %d\n", read_u8(data, 4)); vnc_client_error(vs); break; } break; default: - printf("Msg: %d\n", read_u16(data, 0)); + VNC_DEBUG("Msg: %d\n", read_u16(data, 0)); vnc_client_error(vs); break; } break; default: - printf("Msg: %d\n", data[0]); + VNC_DEBUG("Msg: %d\n", data[0]); vnc_client_error(vs); break; } -- 2.1.0