From 8f7752e63cb52d4af2bda4eaa7e7be870682670e Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Tue, 9 May 2023 00:14:15 +0600 Subject: [PATCH] usb: Add a bit of logging --- src/usb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/usb.c b/src/usb.c index 2ef5bb895..894e0a864 100644 --- a/src/usb.c +++ b/src/usb.c @@ -681,6 +681,9 @@ ohci_mmio_write(uint32_t addr, uint8_t val, void *p) switch (addr) { case OHCI_aHcControl: old = dev->ohci_mmio[OHCI_HcControl].b[0]; +#ifdef ENABLE_USB_LOG + usb_log("OHCI: OHCI state 0x%X\n", (val & 0xc0)); +#endif if ((val & 0xc0) == 0x00) { /* UsbReset */ dev->ohci_mmio[OHCI_HcRhPortStatus1].b[2] = dev->ohci_mmio[OHCI_HcRhPortStatus2].b[2] = 0x16;