diff mbox series

xhci: Fix log mistake of xhci_start

Message ID 1589521506-19492-1-git-send-email-jiahao@xiaomi.com (mailing list archive)
State New, archived
Headers show
Series xhci: Fix log mistake of xhci_start | expand

Commit Message

jiahao May 15, 2020, 5:45 a.m. UTC
It is obvious that XCHI_MAX_HALT_USEC is usec,
 not milliseconds; Replace 'milliseconds' with
'usec' of the debug message.

Signed-off-by: jiahao <jiahao@xiaomi.com>
---
 drivers/usb/host/xhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mathias Nyman May 15, 2020, 6:53 a.m. UTC | #1
On 15.5.2020 8.45, jiahao wrote:
> It is obvious that XCHI_MAX_HALT_USEC is usec,
>  not milliseconds; Replace 'milliseconds' with
> 'usec' of the debug message.
> 
> Signed-off-by: jiahao <jiahao@xiaomi.com>
> ---
>  drivers/usb/host/xhci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
> index bee5dec..d011472 100644
> --- a/drivers/usb/host/xhci.c
> +++ b/drivers/usb/host/xhci.c
> @@ -147,7 +147,7 @@ int xhci_start(struct xhci_hcd *xhci)
>  			STS_HALT, 0, XHCI_MAX_HALT_USEC);
>  	if (ret == -ETIMEDOUT)
>  		xhci_err(xhci, "Host took too long to start, "
> -				"waited %u microseconds.\n",
> +				"waited %u usec.\n",

It already says "microseconds", no need to change it

-Mathias
Sergei Shtylyov May 15, 2020, 9:21 a.m. UTC | #2
On 15.05.2020 8:45, jiahao wrote:

> It is obvious that XCHI_MAX_HALT_USEC is usec,
>   not milliseconds; Replace 'milliseconds' with

     I don't see 'milliseconds', only 'microseconds'...

> 'usec' of the debug message.
> 
> Signed-off-by: jiahao <jiahao@xiaomi.com>
> ---
>   drivers/usb/host/xhci.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
> index bee5dec..d011472 100644
> --- a/drivers/usb/host/xhci.c
> +++ b/drivers/usb/host/xhci.c
> @@ -147,7 +147,7 @@ int xhci_start(struct xhci_hcd *xhci)
>   			STS_HALT, 0, XHCI_MAX_HALT_USEC);
>   	if (ret == -ETIMEDOUT)
>   		xhci_err(xhci, "Host took too long to start, "
> -				"waited %u microseconds.\n",
> +				"waited %u usec.\n",
>   				XHCI_MAX_HALT_USEC);
>   	if (!ret)
>   		/* clear state flags. Including dying, halted or removing */
> 

MBR, Sergei
diff mbox series

Patch

diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index bee5dec..d011472 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -147,7 +147,7 @@  int xhci_start(struct xhci_hcd *xhci)
 			STS_HALT, 0, XHCI_MAX_HALT_USEC);
 	if (ret == -ETIMEDOUT)
 		xhci_err(xhci, "Host took too long to start, "
-				"waited %u microseconds.\n",
+				"waited %u usec.\n",
 				XHCI_MAX_HALT_USEC);
 	if (!ret)
 		/* clear state flags. Including dying, halted or removing */