usb: host: xhci: print correct command ring address
Subsystems (3)
PATCH 1/1 usb: host: xhci: print correct command ring address
Print correct command ring address using 'val_64'.
Cc stable <[email protected]>
Signed-off-by Peter Chen <[email protected]>
--- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/xhci-mem.c +1 -1
@@ -2492,7 +2492,7 @@ int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags) (xhci->cmd_ring->first_seg->dma & (u64 ) ~CMD_RING_RSVD_BITS ) | xhci->cmd_ring->cycle_state;xhci_dbg_trace (xhci, trace_xhci_dbg_init, -"// Setting command ring address to 0x%x" , val); +"// Setting command ring address to 0x%016llx" , val_64);xhci_write_64 (xhci, val_64, &xhci->op_regs->cmd_ring);xhci_dbg_cmd_ptrs (xhci);
Signature · 1 line
2.7.4
From: Peter Chen
Quoted 13 lines
Print correct command ring address using '
val_64'.Cc stable <[email protected]>Signed-off-by Peter Chen <[email protected]>--- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/host/xhci-mem.c +0
-0
drivers/usb/host/xhci-mem.c int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags) · line 2495
Quoted 5 lines
drivers/usb/host/xhci-mem.c +1
-1@@ -2492,7 +2492,7 @@ int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags) (xhci->cmd_ring->first_seg->dma & (u64 ) ~CMD_RING_RSVD_BITS ) | xhci->cmd_ring->cycle_state;xhci_dbg_trace (xhci, trace_xhci_dbg_init, -"// Setting command ring address to 0x%x" , val); +"// Setting command ring address to 0x%016llx" , val_64);
Using "%#llx" might be better - especially if this code is used on 32bit.
David