Received: from eggs.gnu.org ([208.118.235.92]:57455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPybP-0000XF-Kw for qemu-devel@nongnu.org; Thu, 03 May 2012 12:10:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPybF-0001HK-1N for qemu-devel@nongnu.org; Thu, 03 May 2012 12:09:59 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:36033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPybE-0001G9-AD for qemu-devel@nongnu.org; Thu, 03 May 2012 12:09:48 -0400 From: Stefan Weil Date: Thu, 3 May 2012 18:09:45 +0200 Message-Id: <1336061385-5743-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH 1.1] tci: Fix wrong macro name for debug code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil , Anthony Liguori 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 --- 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