qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6495] Fix invalid #if in vnc.c when debugging is enabled (


From: Anthony Liguori
Subject: [Qemu-devel] [6495] Fix invalid #if in vnc.c when debugging is enabled (Alexander Graf)
Date: Mon, 02 Feb 2009 15:58:38 +0000

Revision: 6495
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6495
Author:   aliguori
Date:     2009-02-02 15:58:38 +0000 (Mon, 02 Feb 2009)

Log Message:
-----------
Fix invalid #if in vnc.c when debugging is enabled (Alexander Graf)

While running with debugging enabled, I found an #if testing for
an undefined value, not defined(value). This patch fixes that.

Signed-off-by: Alexander Graf <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

Modified Paths:
--------------
    trunk/vnc.c

Modified: trunk/vnc.c
===================================================================
--- trunk/vnc.c 2009-02-02 15:58:29 UTC (rev 6494)
+++ trunk/vnc.c 2009-02-02 15:58:38 UTC (rev 6495)
@@ -47,7 +47,7 @@
 #ifdef _VNC_DEBUG
 #define VNC_DEBUG(fmt, ...) do { fprintf(stderr, fmt, ## __VA_ARGS__); } while 
(0)
 
-#if CONFIG_VNC_TLS && _VNC_DEBUG >= 2
+#if defined(CONFIG_VNC_TLS) && _VNC_DEBUG >= 2
 /* Very verbose, so only enabled for _VNC_DEBUG >= 2 */
 static void vnc_debug_gnutls_log(int level, const char* str) {
     VNC_DEBUG("%d %s", level, str);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]