aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-05-03 18:09:45 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-05-08 11:15:18 -0500
commit17904bcfb760bdf6bd462e0396478893555d1edb (patch)
tree73c3b1b892a10ad55fe86bc0d2cc3f69c1f7fe8b
parent165ceac0950dcfdf7a2676d6189bbab3d67701f1 (diff)
tci: Fix wrong macro name for debug code
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>
-rw-r--r--tci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tci.c b/tci.c
index 71de66d508..a412a4ed93 100644
--- 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