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

login
register
mail settings
Submitter Gerd Hoffmann
Date Oct. 30, 2012, 11:28 a.m.
Message ID <1351596522-8142-5-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/195457/
State New
Headers show

Comments

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(-)

Patch

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