trace("%p", udc);
if (udc == NULL) {
- err("EINVAL");
+ pr_err("EINVAL\n");
return;
}
done:
if (retval)
- err("error: %i", retval);
+ pr_err("error: %i\n", retval);
}
/**
trace("%p, %p", ep, req);
if (ep == NULL || req == NULL) {
- err("EINVAL");
+ pr_err("EINVAL\n");
return;
}
trace("%p", udc);
if (udc == NULL) {
- err("EINVAL");
+ pr_err("EINVAL\n");
return;
}
"ERROR", err);
spin_unlock(udc->lock);
if (usb_ep_set_halt(&mEp->ep))
- err("error: ep_set_halt");
+ dev_err(&udc->gadget.dev,
+ "error: ep_set_halt\n");
spin_lock(udc->lock);
}
}
continue;
if (i != 0) {
- warn("ctrl traffic received at endpoint");
+ dev_warn(&udc->gadget.dev,
+ "ctrl traffic received at endpoint\n");
continue;
}
spin_unlock(udc->lock);
if (usb_ep_set_halt(&mEp->ep))
- err("error: ep_set_halt");
+ dev_err(&udc->gadget.dev,
+ "error: ep_set_halt\n");
spin_lock(udc->lock);
}
}
trace("%p, %i", ep, gfp_flags);
if (ep == NULL) {
- err("EINVAL");
+ pr_err("EINVAL\n");
return NULL;
}
trace("%p, %p", ep, req);
if (ep == NULL || req == NULL) {
- err("EINVAL");
+ pr_err("EINVAL\n");
return;
} else if (!list_empty(&mReq->queue)) {
- err("EBUSY");
+ pr_err("EBUSY\n");
return;
}
/* first nuke then test link, e.g. previous status has not sent */
if (!list_empty(&mReq->queue)) {
retval = -EBUSY;
- err("request already in queue");
+ pr_err("request already in queue\n");
goto done;
}
trace("%p", ep);
if (ep == NULL) {
- err("%02X: -EINVAL", _usb_addr(mEp));
+ pr_err("%02X: -EINVAL\n", _usb_addr(mEp));
return;
}
trace();
if (udc == NULL) {
- err("ENODEV");
+ pr_err("ENODEV\n");
return IRQ_HANDLED;
}
trace("%p", dev);
if (dev == NULL)
- err("EINVAL");
+ pr_err("EINVAL\n");
}
/**
usb_put_transceiver(udc->transceiver);
}
- err("error = %i", retval);
+ dev_err(dev, "error = %i\n", retval);
remove_dbg:
#ifdef CONFIG_USB_GADGET_DEBUG_FILES
dbg_remove_files(&udc->gadget.dev);
struct ci13xxx *udc = _udc;
if (udc == NULL) {
- err("EINVAL");
+ pr_err("EINVAL\n");
return;
}
usb_del_gadget_udc(&udc->gadget);