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>
This commit is contained in:
parent
165ceac095
commit
17904bcfb7
2
tci.c
2
tci.c
@ -20,7 +20,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
/* Defining NDEBUG disables assertions (which makes the code faster). */
|
/* 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
|
# define NDEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user