Received: from eggs.gnu.org ([208.118.235.92]:58509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTCmj-0000tU-BQ for qemu-devel@nongnu.org; Tue, 30 Oct 2012 10:27:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTCmU-0005Li-NX for qemu-devel@nongnu.org; Tue, 30 Oct 2012 10:27:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTCmU-0005LL-Fe for qemu-devel@nongnu.org; Tue, 30 Oct 2012 10:27:02 -0400 From: Gerd Hoffmann Date: Tue, 30 Oct 2012 15:26:44 +0100 Message-Id: <1351607214-4007-13-git-send-email-kraxel@redhat.com> In-Reply-To: <1351607214-4007-1-git-send-email-kraxel@redhat.com> References: <1351607214-4007-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 12/22] usb/ehci: Guard definition of EHCI_DEBUG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Crosthwaite , Gerd Hoffmann From: Peter Crosthwaite Guard against re-definition of EHCI_DEBUG. Allows for turning on of debug info from configure (using --qemu-extra-cflags="-DEHCI_DEBUG=1") rather than source code hacking. Signed-off-by: Peter Crosthwaite Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-ehci.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index 59580fc..d3168c9 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -36,7 +36,9 @@ #include "dma.h" #include "sysemu.h" +#ifndef EHCI_DEBUG #define EHCI_DEBUG 0 +#endif #if EHCI_DEBUG #define DPRINTF printf -- 1.7.1