Skip to content

Commit

Permalink
usb: dwc3: gadget: print both cmd string and number
Browse files Browse the repository at this point in the history
That way it's easy for humans looking at dmesg
and humans(?) looking at Databooks.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Apr 25, 2014
1 parent bd8ce54 commit 40cc57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep,
u32 timeout = 500;
u32 reg;

dev_vdbg(dwc->dev, "%s: cmd '%s' params %08x %08x %08x\n",
dev_vdbg(dwc->dev, "%s: cmd '%s' [%d] params %08x %08x %08x\n",
dep->name,
dwc3_gadget_ep_cmd_string(cmd), params->param0,
dwc3_gadget_ep_cmd_string(cmd), cmd, params->param0,
params->param1, params->param2);

dwc3_writel(dwc->regs, DWC3_DEPCMDPAR0(ep), params->param0);
Expand Down

0 comments on commit 40cc57c

Please sign in to comment.