usb: dwc3: debugfs: return strings that match tracepoints
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 31 Mar 2017 11:37:21 +0000 (14:37 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:26 +0000 (10:58 +0300)
In order to improve usability a tiny bit, we will return strings that
match what our tracepoints return.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/debugfs.c

index d77eac7b239d20ea91eccd36f26c8bac156823e1..3606c28be580be8dad94c7ab4fa7cc4008fced61 100644 (file)
@@ -650,13 +650,13 @@ static inline const char *dwc3_trb_type_string(struct dwc3_trb *trb)
        case DWC3_TRBCTL_NORMAL:
                return "normal";
        case DWC3_TRBCTL_CONTROL_SETUP:
-               return "control-setup";
+               return "setup";
        case DWC3_TRBCTL_CONTROL_STATUS2:
-               return "control-status2";
+               return "status2";
        case DWC3_TRBCTL_CONTROL_STATUS3:
-               return "control-status3";
+               return "status3";
        case DWC3_TRBCTL_CONTROL_DATA:
-               return "control-data";
+               return "data";
        case DWC3_TRBCTL_ISOCHRONOUS_FIRST:
                return "isoc-first";
        case DWC3_TRBCTL_ISOCHRONOUS: