Skip to contentSkip to conversation

usb: gadget: Fix copy/pasted error message

PATCH New David Lechner 1 participant 1 message Jan 2, 2017 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: gadget: Fix copy/pasted error message

This fixes an error message that was probably copied and pasted. The same message is used for both the in and out endpoints, so it makes it impossible to know which one actually failed because both cases say "IN".

Make the out endpoint error message say "OUT".

---
 drivers/usb/gadget/function/f_hid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/function/f_hid.c +1 -1
index aa1c199..b459c50 100644
@@ -539,7 +539,7 @@ static int hidg_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
 		}
 		status = usb_ep_enable(hidg->out_ep);
 		if (status < 0) {
-			ERROR(cdev, "Enable IN endpoint FAILED!\n");
+			ERROR(cdev, "Enable OUT endpoint FAILED!\n");
 			goto fail;
 		}
 		hidg->out_ep->driver_data = hidg;
Signature · 1 line
2.7.4