From: Peter Crosthwaite Date: Mon, 29 Oct 2012 01:34:39 +0000 (+1000) Subject: usb/ehci: Guard definition of EHCI_DEBUG X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~3115^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=569c7fc8400ea3a7b13589af889003208aaae2ed;p=sdk%2Femulator%2Fqemu.git usb/ehci: Guard definition of EHCI_DEBUG 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 Signed-off-by: Gerd Hoffmann --- 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