tci: Fix wrong macro name for debug code
authorStefan Weil <sw@weilnetz.de>
Thu, 3 May 2012 16:09:45 +0000 (18:09 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 8 May 2012 16:15:18 +0000 (11:15 -0500)
Code which is compiled with CONFIG_TCG_DEBUG (set by configure option
--enable-debug-tcg) should not disable the assert macro by
defining NDEBUG.

With the wrong macro name CONFIG_TCG_DEBUG, all assertions in tci.c
were completely useless because NDEBUG was always defined.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tci.c

diff --git a/tci.c b/tci.c
index 71de66d508be462ddd1875f52c904a61fb089df0..a412a4ed93fead23c9483e23c0dcdf77dd1061d0 100644 (file)
--- a/tci.c
+++ b/tci.c
@@ -20,7 +20,7 @@
 #include "config.h"
 
 /* Defining NDEBUG disables assertions (which makes the code faster). */
-#if !defined(CONFIG_TCG_DEBUG) && !defined(NDEBUG)
+#if !defined(CONFIG_DEBUG_TCG) && !defined(NDEBUG)
 # define NDEBUG
 #endif