[v1,6/8] usb/ehci: Guard definition of EHCI_DEBUG

Message ID 614a1d7157090deeea38a7970ef03242e47b0757.1351157627.git.peter.crosthwaite@xilinx.com
State New
Headers show

Commit Message

Peter Crosthwaite Oct. 25, 2012, 9:47 a.m.
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>

 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 17482f7..394feca 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -38,7 +38,9 @@ 
 #include "hw/sysbus.h"
 #include "exec-memory.h"
+#ifndef EHCI_DEBUG
 #define EHCI_DEBUG   0
 #define DPRINTF printf