Fix compile

This commit is contained in:
Angelo Salese 2011-12-02 13:56:45 +00:00
parent 64c8ea4a99
commit 2b9d5eabc2

View File

@ -685,7 +685,7 @@ static void geforce_pci_w(device_t *busdevice, device_t *device, int function, i
* ohci usb controller placeholder * ohci usb controller placeholder
*/ */
static char *usbregnames[]={ static const char *const usbregnames[]={
"HcRevision", "HcRevision",
"HcControl", "HcControl",
"HcCommandStatus", "HcCommandStatus",
@ -729,9 +729,9 @@ static WRITE32_HANDLER( usbctrl_w )
{ {
#ifdef LOG_OHCI #ifdef LOG_OHCI
if (offset >= 0x54/4) if (offset >= 0x54/4)
logerror("usb controller 0 register HcRhPortStatus[%d] write %08X\n",(offset-0x54/4)+1); logerror("usb controller 0 register HcRhPortStatus[%d] write %08X\n",(offset-0x54/4)+1,data);
else else
logerror("usb controller 0 register %s write %08X\n",usbregnames[offset]); logerror("usb controller 0 register %s write %08X\n",usbregnames[offset],data);
#endif #endif
} }