URB *Urb;\r
EFI_TPL OldTpl;\r
EFI_STATUS Status;\r
+ UINTN DebugErrorLevel;\r
\r
//\r
// Validate the parameters\r
gBS->RestoreTPL (OldTpl);\r
\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "EhcBulkTransfer: error - %r, transfer - %x\n", Status, *TransferResult));\r
+ if (Status == EFI_TIMEOUT) {\r
+ DebugErrorLevel = DEBUG_VERBOSE;\r
+ } else {\r
+ DebugErrorLevel = DEBUG_ERROR;\r
+ }\r
+\r
+ DEBUG ((DebugErrorLevel, "EhcBulkTransfer: error - %r, transfer - %x\n", Status, *TransferResult));\r
}\r
\r
return Status;\r
}\r
\r
if (!Finished) {\r
- DEBUG ((DEBUG_ERROR, "EhcExecTransfer: transfer not finished in %dms\n", (UINT32)TimeOut));\r
+ DEBUG ((DEBUG_VERBOSE, "EhcExecTransfer: transfer not finished in %dms\n", (UINT32)TimeOut));\r
EhcDumpQh (Urb->Qh, NULL, FALSE);\r
\r
Status = EFI_TIMEOUT;\r
UINT8 SlotId;\r
EFI_STATUS Status;\r
EFI_TPL OldTpl;\r
+ UINTN DebugErrorLevel;\r
\r
//\r
// Validate the parameters\r
\r
ON_EXIT:\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "XhcBulkTransfer: error - %r, transfer - %x\n", Status, *TransferResult));\r
+ if (Status == EFI_TIMEOUT) {\r
+ DebugErrorLevel = DEBUG_VERBOSE;\r
+ } else {\r
+ DebugErrorLevel = DEBUG_ERROR;\r
+ }\r
+\r
+ DEBUG ((DebugErrorLevel, "XhcBulkTransfer: error - %r, transfer - %x\n", Status, *TransferResult));\r
}\r
\r
gBS->RestoreTPL (OldTpl);\r
Dci = XhcEndpointToDci (Urb->Ep.EpAddr, (UINT8)(Urb->Ep.Direction));\r
ASSERT (Dci < 32);\r
\r
- DEBUG ((DEBUG_INFO, "Stop Slot = %x,Dci = %x\n", SlotId, Dci));\r
+ DEBUG ((DEBUG_VERBOSE, "Stop Slot = %x,Dci = %x\n", SlotId, Dci));\r
\r
//\r
// 1) Send Stop endpoint command to stop xHC from executing of the TDs on the endpoint\r
EVT_TRB_COMMAND_COMPLETION *EvtTrb;\r
CMD_TRB_STOP_ENDPOINT CmdTrbStopED;\r
\r
- DEBUG ((DEBUG_INFO, "XhcStopEndpoint: Slot = 0x%x, Dci = 0x%x\n", SlotId, Dci));\r
+ DEBUG ((DEBUG_VERBOSE, "XhcStopEndpoint: Slot = 0x%x, Dci = 0x%x\n", SlotId, Dci));\r
\r
//\r
// When XhcCheckUrbResult waits for the Stop_Endpoint completion, it also checks\r
CMD_SET_TR_DEQ_POINTER CmdSetTRDeq;\r
EFI_PHYSICAL_ADDRESS PhyAddr;\r
\r
- DEBUG ((DEBUG_INFO, "XhcSetTrDequeuePointer: Slot = 0x%x, Dci = 0x%x, Urb = 0x%x\n", SlotId, Dci, Urb));\r
+ DEBUG ((DEBUG_VERBOSE, "XhcSetTrDequeuePointer: Slot = 0x%x, Dci = 0x%x, Urb = 0x%x\n", SlotId, Dci, Urb));\r
\r
//\r
// Send stop endpoint command to transit Endpoint from running to stop state\r