Skip to content

Commit a4e1436

Browse files
Epicuriusgregkh
authored andcommitted
usb: xhci: align PORTSC trace with one-based port numbering
In the xHCI driver, port numbers are typically described using a one-based index. However, tracing currently uses a zero-based index. To ensure consistency between tracing and dynamic debugging, update the trace port number to use a one-based index. Signed-off-by: Niklas Neronin <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e16fdea commit a4e1436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/host/xhci-trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ DECLARE_EVENT_CLASS(xhci_log_portsc,
550550
),
551551
TP_fast_assign(
552552
__entry->busnum = port->rhub->hcd->self.busnum;
553-
__entry->portnum = port->hcd_portnum;
553+
__entry->portnum = port->hcd_portnum + 1;
554554
__entry->portsc = portsc;
555555
),
556556
TP_printk("port %d-%d: %s",

0 commit comments

Comments
 (0)