RE: [PATCH 1/1] usb: host: xhci: print correct command ring address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Peter Chen
> Print correct command ring address using 'val_64'.
> 
> Cc: stable <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Peter Chen <peter.chen@xxxxxxx>
> ---
>  drivers/usb/host/xhci-mem.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
> index de1503c..d7879f1 100644
> --- a/drivers/usb/host/xhci-mem.c
> +++ b/drivers/usb/host/xhci-mem.c
> @@ -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

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux