usb: dwc3: debug: show events parameters in hex
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 20 Jul 2022 21:51:12 +0000 (23:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Aug 2022 09:03:52 +0000 (11:03 +0200)
Printing the event parameters in decimal is not useful.
Print them in hex and make it more practical.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220720215113.1058313-1-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/debug.h

index d223c54115f4a16abcb8a72a5642497da33c8dea..48b44b88dc25295693002dc81cca29a121119fe0 100644 (file)
@@ -278,7 +278,7 @@ static inline const char *dwc3_ep_event_string(char *str, size_t size,
                break;
        case DWC3_DEPEVT_XFERINPROGRESS:
                scnprintf(str + len, size - len,
-                               "Transfer In Progress [%d] (%c%c%c)",
+                               "Transfer In Progress [%08x] (%c%c%c)",
                                event->parameters,
                                status & DEPEVT_STATUS_SHORT ? 'S' : 's',
                                status & DEPEVT_STATUS_IOC ? 'I' : 'i',
@@ -286,7 +286,7 @@ static inline const char *dwc3_ep_event_string(char *str, size_t size,
                break;
        case DWC3_DEPEVT_XFERNOTREADY:
                len += scnprintf(str + len, size - len,
-                               "Transfer Not Ready [%d]%s",
+                               "Transfer Not Ready [%08x]%s",
                                event->parameters,
                                status & DEPEVT_STATUS_TRANSFER_ACTIVE ?
                                " (Active)" : " (Not Active)");