[OpenBIOS] [PATCH] drivers/usb: Fix compiling with USB debugging enabled
BALATON Zoltan
balaton at eik.bme.hu
Mon Oct 17 23:16:10 CEST 2016
Signed-off-by: BALATON Zoltan <balaton at eik.bme.hu>
---
drivers/usb.c | 2 +-
drivers/usbhid.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb.c b/drivers/usb.c
index c6e3717..88b7580 100644
--- a/drivers/usb.c
+++ b/drivers/usb.c
@@ -555,7 +555,7 @@ usb_detach_device(hci_t *controller, int devno)
int
usb_attach_device(hci_t *controller, int hubaddress, int port, int speed)
{
-#ifdef CONFIG_USB_DEBUG
+#ifdef CONFIG_DEBUG_USB
static const char* speeds[] = { "full", "low", "high" };
usb_debug ("%sspeed device\n", (speed <= 2) ? speeds[speed] : "invalid value - no");
#endif
diff --git a/drivers/usbhid.c b/drivers/usbhid.c
index a423278..dcd4ce6 100644
--- a/drivers/usbhid.c
+++ b/drivers/usbhid.c
@@ -60,7 +60,7 @@ NODE_METHODS( usb_kbd ) = {
{ "read", keyboard_read },
};
-#ifdef CONFIG_USB_DEBUG
+#ifdef CONFIG_DEBUG_USB
static const char *boot_protos[3] = { "(none)", "keyboard", "mouse" };
#endif
typedef enum { hid_proto_boot = 0, hid_proto_report = 1 } hid_proto;
--
2.7.4
More information about the OpenBIOS
mailing list