From 17904bcfb760bdf6bd462e0396478893555d1edb Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 3 May 2012 18:09:45 +0200 Subject: [PATCH] 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 Signed-off-by: Stefan Weil Signed-off-by: Anthony Liguori --- tci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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