Skip to content

Commit 1d1d243

Browse files
xiaoguangwuwenlingz
authored andcommitted
DM USB: xHCI: change log level of some logs for S3 online debugging
S3 emulation is complicated and greatly dependent on system timing, hence this patch changes log level for some important logs to help online debugging (could output log by modifing launch_uos.sh and without re-compiling) Tracked-On: #1893 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>
1 parent 5f0c093 commit 1d1d243

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

devicemodel/hw/pci/xhci.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ pci_xhci_native_usb_dev_conn_cb(void *hci_data, void *dev_data)
777777
return 0;
778778
}
779779

780-
UPRINTF(LDBG, "%04x:%04x %d-%s belong to this vm.\r\n", di->vid,
780+
UPRINTF(LINF, "%04x:%04x %d-%s belong to this vm.\r\n", di->vid,
781781
di->pid, di->path.bus, usb_dev_path(&di->path));
782782

783783
for (i = 0; xdev->vbdp_dev_num && i < XHCI_MAX_VIRT_PORTS; ++i) {
@@ -903,6 +903,9 @@ pci_xhci_native_usb_dev_disconn_cb(void *hci_data, void *dev_data)
903903
* we do nothing here for device that is in the middle of
904904
* S3 resuming process.
905905
*/
906+
UPRINTF(LINF, "disconnect device %d-%s on vport %d with "
907+
"state %d and return.\r\n", di->path.bus,
908+
usb_dev_path(&di->path), vport, state);
906909
return 0;
907910
}
908911

0 commit comments

Comments
 (0)