From eae896c7aeff5fc0b641bcc0d5cc3629ec792588 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 18 Feb 2019 10:15:55 -0500 Subject: [PATCH] XHCI: Print command code in "unsuccessful command" log message. This should help with debugging #13772. --- src/add-ons/kernel/busses/usb/xhci.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/busses/usb/xhci.cpp b/src/add-ons/kernel/busses/usb/xhci.cpp index 9eed51c166..d816446318 100644 --- a/src/add-ons/kernel/busses/usb/xhci.cpp +++ b/src/add-ons/kernel/busses/usb/xhci.cpp @@ -2130,8 +2130,8 @@ XHCI::DoCommand(xhci_trb* trb) TRACE("Command Complete. Result: %" B_PRId32 "\n", completionCode); if (completionCode != COMP_SUCCESS) { uint32 errorCode = TRB_2_COMP_CODE_GET(fCmdResult[0]); - TRACE_ERROR("unsuccessful command, error %s (%" B_PRId32 ")\n", - xhci_error_string(errorCode), errorCode); + TRACE_ERROR("unsuccessful command %" B_PRId32 ", error %s (%" B_PRId32 ")\n", + TRB_3_TYPE_GET(trb->dwtrb3), xhci_error_string(errorCode), errorCode); status = B_IO_ERROR; }