Skip to contentSkip to conversation

[6495] Fix invalid #if in vnc.c when debugging is enabled (Alexander Graf)

Qemu-devel Anthony Liguori 1 participant 1 message Feb 2, 2009

lore
Share & tools
lore
#0 lore raw

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.

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

Modified: trunk/vnc.c
===================================================================

vnc.c +1 -1
@@ -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);