[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 09/11] usb/ehci: Guard definition of EHCI_DEBUG
From: |
Peter Crosthwaite |
Subject: |
[Qemu-devel] [PATCH v2 09/11] usb/ehci: Guard definition of EHCI_DEBUG |
Date: |
Fri, 26 Oct 2012 15:47:49 +1000 |
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 <address@hidden>
---
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 4d5e476..7de3e54 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
--
1.7.0.4
[Qemu-devel] [PATCH v2 10/11] usb/ehci: Debug mode compile fixes, Peter Crosthwaite, 2012/10/26
[Qemu-devel] [PATCH v2 08/11] xilinx_zynq: add USB controllers, Peter Crosthwaite, 2012/10/26