Message ID | 20220630124645.1805902-2-mathias.nyman@linux.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 1ce69c35b86038dd11d3a6115a04501c5b89a940 |
Headers | show |
Series | xhci feature for usb-next | expand |
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 28aaf031f9a8..1960b47acfb2 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -2417,7 +2417,7 @@ static inline const char *xhci_decode_trb(char *str, size_t size, field3 & TRB_CYCLE ? 'C' : 'c'); break; case TRB_STOP_RING: - sprintf(str, + snprintf(str, size, "%s: slot %d sp %d ep %d flags %c", xhci_trb_type_string(type), TRB_TO_SLOT_ID(field3),