usb: dwc3: ep0: fix debug message
authorFelipe Balbi <balbi@ti.com>
Fri, 30 Sep 2011 07:58:38 +0000 (10:58 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Oct 2011 17:25:51 +0000 (10:25 -0700)
The way it was before was really meaningless.
Now it looks saner.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/dwc3/ep0.c

index d45e2154b90c3b101e82938f694e8357f60fa86c..95ce96a14ff666d328b872a916329e44a01992e2 100644 (file)
@@ -740,8 +740,8 @@ static void dwc3_ep0_xfernotready(struct dwc3 *dwc,
 
                if (dwc->ep0_next_event != DWC3_EP0_NRDY_DATA) {
                        dev_vdbg(dwc->dev, "Expected %d got %d\n",
-                                       DEPEVT_STATUS_CONTROL_DATA,
-                                       event->status);
+                                       dwc->ep0_next_event,
+                                       DWC3_EP0_NRDY_DATA);
 
                        dwc3_ep0_stall_and_restart(dwc);
                        return;
@@ -769,8 +769,8 @@ static void dwc3_ep0_xfernotready(struct dwc3 *dwc,
 
                if (dwc->ep0_next_event != DWC3_EP0_NRDY_STATUS) {
                        dev_vdbg(dwc->dev, "Expected %d got %d\n",
-                                       DEPEVT_STATUS_CONTROL_STATUS,
-                                       event->status);
+                                       dwc->ep0_next_event,
+                                       DWC3_EP0_NRDY_STATUS);
 
                        dwc3_ep0_stall_and_restart(dwc);
                        return;