Commit 26f8b9cc87de6646344fa4e2670eb14c9ceb73f9

Authored by aliguori
1 parent 29fa4ed9

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>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6495 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -47,7 +47,7 @@
47 47 #ifdef _VNC_DEBUG
48 48 #define VNC_DEBUG(fmt, ...) do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0)
49 49  
50   -#if CONFIG_VNC_TLS && _VNC_DEBUG >= 2
  50 +#if defined(CONFIG_VNC_TLS) && _VNC_DEBUG >= 2
51 51 /* Very verbose, so only enabled for _VNC_DEBUG >= 2 */
52 52 static void vnc_debug_gnutls_log(int level, const char* str) {
53 53 VNC_DEBUG("%d %s", level, str);
... ...