From: Felipe Balbi Date: Sat, 27 Aug 2011 17:29:58 +0000 (+0300) Subject: usb: dwc3: gadget: improve command completion debug message X-Git-Tag: v3.2-rc1~183^2~148^2~38 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=164f6e141ed214bda30fb219d41ec3254bd90886;p=~emulex%2Finfiniband.git usb: dwc3: gadget: improve command completion debug message the previous message had too little meaning. Make it more human readable and use the macro we already had for extracting the command completion status out of DEPCMDn register. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 4d232c3646c..56ccd97000a 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -169,8 +169,8 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, do { reg = dwc3_readl(dwc->regs, DWC3_DEPCMD(ep)); if (!(reg & DWC3_DEPCMD_CMDACT)) { - dev_vdbg(dwc->dev, "CMD Compl Status %d DEPCMD %04x\n", - ((reg & 0xf000) >> 12), reg); + dev_vdbg(dwc->dev, "Command Complete --> %d\n", + DWC3_DEPCMD_STATUS(reg)); return 0; }