Patchwork [v3,8/8] usb/ehci: Guard definition of EHCI_DEBUG

login
register
mail settings
Submitter Peter Crosthwaite
Date Oct. 29, 2012, 1:34 a.m.
Message ID <02c080ca6648009fad741b62e503f89b5cc8181a.1351473902.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/194783/
State New
Headers show

Comments

Peter Crosthwaite - Oct. 29, 2012, 1:34 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(-)

Patch

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 7948146..8bd3a9f 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
+#endif
 
 #if EHCI_DEBUG
 #define DPRINTF printf