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 <niklas.neronin@linux.intel.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20250917210726.97100-7-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e16fdeaa96
commit
a4e143636d
|
|
@ -550,7 +550,7 @@ DECLARE_EVENT_CLASS(xhci_log_portsc,
|
|||
),
|
||||
TP_fast_assign(
|
||||
__entry->busnum = port->rhub->hcd->self.busnum;
|
||||
__entry->portnum = port->hcd_portnum;
|
||||
__entry->portnum = port->hcd_portnum + 1;
|
||||
__entry->portsc = portsc;
|
||||
),
|
||||
TP_printk("port %d-%d: %s",
|
||||
|
|
|
|||
Loading…
Reference in New Issue