mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
DM USB: modify some logs to help debug
Mainly change the logs for transfer submission and completion, which are very important parts in USB emulation code. Change-Id: I4e04f1426e164ca3693e70946ed51380201e49ee Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -497,27 +497,27 @@ pci_xhci_native_usb_dev_conn_cb(void *hci_data, void *dev_data)
|
||||
ue->ue_info(ud, USB_INFO_PORT, &native_port, sizeof(native_port));
|
||||
ue->ue_info(ud, USB_INFO_VID, &native_vid, sizeof(native_vid));
|
||||
ue->ue_info(ud, USB_INFO_PID, &native_pid, sizeof(native_pid));
|
||||
UPRINTF(LDBG, "%X:%X %d-%d connecting.\r\n",
|
||||
UPRINTF(LDBG, "%04x:%04x %d-%d connecting.\r\n",
|
||||
native_vid, native_pid, native_bus, native_port);
|
||||
|
||||
/* FIXME: will support usb3 in future */
|
||||
if (xdev->native_assign_ports[native_bus] &&
|
||||
usb_native_is_ss_port(native_bus)) {
|
||||
UPRINTF(LDBG, "%X:%X %d-%d not support usb3 device, exit.\r\n",
|
||||
native_vid, native_pid, native_bus,
|
||||
native_port);
|
||||
UPRINTF(LDBG, "%04x:%04x %d-%d be ignored due to superspeed"
|
||||
" device hasn't support yet\r\n", native_vid,
|
||||
native_pid, native_bus, native_port);
|
||||
goto errout;
|
||||
}
|
||||
|
||||
if (!xdev->native_assign_ports[native_bus] ||
|
||||
!xdev->native_assign_ports[native_bus][native_port]) {
|
||||
UPRINTF(LDBG, "%X:%X %d-%d doesn't belong to this vm, bye.\r\n",
|
||||
native_vid, native_pid, native_bus,
|
||||
UPRINTF(LDBG, "%04x:%04x %d-%d doesn't belong to this vm, bye."
|
||||
"\r\n", native_vid, native_pid, native_bus,
|
||||
native_port);
|
||||
goto errout;
|
||||
}
|
||||
|
||||
UPRINTF(LDBG, "%X:%X %d-%d belong to this vm.\r\n", native_vid,
|
||||
UPRINTF(LDBG, "%04x:%04x %d-%d belong to this vm.\r\n", native_vid,
|
||||
native_pid, native_bus, native_port);
|
||||
|
||||
if (ue->ue_usbver == 2)
|
||||
|
||||
Reference in New Issue
Block a user