[RfC,4/5] usb/ehci: Guard definition of EHCI_DEBUG

Message ID 1351596522-8142-5-git-send-email-kraxel@redhat.com
State New
Headers show

Commit Message

Gerd Hoffmann Oct. 30, 2012, 11:28 a.m.
From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

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 <peter.crosthwaite@xilinx.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
 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
 #define DPRINTF printf