qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6495] Fix invalid #if in vnc.c when debugging is enabled (Alexander Graf)
@ 2009-02-02 15:58 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-02-02 15:58 UTC (permalink / raw)
  To: qemu-devel

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 <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-02 15:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 15:58 [Qemu-devel] [6495] Fix invalid #if in vnc.c when debugging is enabled (Alexander Graf) Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).