UPSTREAM: usb: dwc3: gadget: fix trace output when command fails
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 23 May 2016 10:50:29 +0000 (13:50 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
We don't need the extra %s when command fails.
Let's remove it

Change-Id: I4cbad651f7b386ceb24f077a4c3f2036cd619ee9
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit ba1598410eff646e10be4e42d773e5bdc511d898)

drivers/usb/dwc3/gadget.c

index aba207a69fcf1d7dbb671d80e7c48716509f867d..2ea19d211077f94686a923c7a67d71e5dd232e78 100644 (file)
@@ -303,7 +303,7 @@ int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd,
                                ret = 0;
                                break;
                        case DEPEVT_TRANSFER_NO_RESOURCE:
-                               dwc3_trace(trace_dwc3_gadget, "%s: no resource available");
+                               dwc3_trace(trace_dwc3_gadget, "no resource available");
                                ret = -EINVAL;
                                break;
                        case DEPEVT_TRANSFER_BUS_EXPIRY:
@@ -318,7 +318,7 @@ int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd,
                                 * give a hint to the gadget driver that this is
                                 * the case by returning -EAGAIN.
                                 */
-                               dwc3_trace(trace_dwc3_gadget, "%s: bus expiry");
+                               dwc3_trace(trace_dwc3_gadget, "bus expiry");
                                ret = -EAGAIN;
                                break;
                        default: