Skip to content

Commit

Permalink
usb: dwc3: debug: fix ep name on trace output
Browse files Browse the repository at this point in the history
There was a typo when generating endpoint name which
would be very confusing when debugging. Fix it.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
  • Loading branch information
Felipe Balbi committed Aug 25, 2016
1 parent 23fd537 commit 696fe69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc3/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ dwc3_ep_event_string(const struct dwc3_event_depevt *event)
int ret;

ret = sprintf(str, "ep%d%s: ", epnum >> 1,
(epnum & 1) ? "in" : "in");
(epnum & 1) ? "in" : "out");
if (ret < 0)
return "UNKNOWN";

Expand Down

0 comments on commit 696fe69

Please sign in to comment.