From patchwork Tue Oct 30 11:28:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RfC,4/5] usb/ehci: Guard definition of EHCI_DEBUG Date: Tue, 30 Oct 2012 01:28:41 -0000 From: Gerd Hoffmann X-Patchwork-Id: 195457 Message-Id: <1351596522-8142-5-git-send-email-kraxel@redhat.com> To: qemu-devel@nongnu.org Cc: peter.crosthwaite@xilinx.com, 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