diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 9c4422ac9de41d25db79c6dfd7c5ddb59ae917aa..bd60c816e907d0fca119518849e86ca16d1b2527 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -1010,7 +1010,7 @@ set_ether_config (struct eth_dev *dev, gfp_t gfp_flags)
 		result = usb_ep_enable (dev->out_ep, dev->out);
 		if (result != 0) {
 			DEBUG (dev, "enable %s --> %d\n", 
-				dev->in_ep->name, result);
+				dev->out_ep->name, result);
 			goto done;
 		}
 	}