[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1.1] tci: Fix wrong macro name for debug code
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH 1.1] tci: Fix wrong macro name for debug code |
Date: |
Thu, 3 May 2012 18:09:45 +0200 |
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.
Signed-off-by: Stefan Weil <address@hidden>
---
tci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Please apply this fix before the release of QEMU 1.1.
Thanks,
Stefan Weil
diff --git a/tci.c b/tci.c
index 23a8368..e40c080 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
--
1.7.9
- [Qemu-devel] [PATCH 1.1] tci: Fix wrong macro name for debug code,
Stefan Weil <=