usb/ehci: Guard definition of EHCI_DEBUG
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Mon, 29 Oct 2012 01:34:39 +0000 (11:34 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Nov 2012 12:10:10 +0000 (13:10 +0100)
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

index 59580fc..d3168c9 100644 (file)
@@ -36,7 +36,9 @@
 #include "dma.h"
 #include "sysemu.h"
 
+#ifndef EHCI_DEBUG
 #define EHCI_DEBUG   0
+#endif
 
 #if EHCI_DEBUG
 #define DPRINTF printf