usb: gadget: fix misspelling of current function in string
Replace a misspelled function name by %s and then __func__. This was done using Coccinelle, including the use of Levenshtein distance, as proposed by Rasmus Villemoes. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
c044247965
commit
c9b3bde03b
2 changed files with 4 additions and 3 deletions
|
@ -399,8 +399,9 @@ static int hidg_setup(struct usb_function *f,
|
||||||
value = __le16_to_cpu(ctrl->wValue);
|
value = __le16_to_cpu(ctrl->wValue);
|
||||||
length = __le16_to_cpu(ctrl->wLength);
|
length = __le16_to_cpu(ctrl->wLength);
|
||||||
|
|
||||||
VDBG(cdev, "hid_setup crtl_request : bRequestType:0x%x bRequest:0x%x "
|
VDBG(cdev,
|
||||||
"Value:0x%x\n", ctrl->bRequestType, ctrl->bRequest, value);
|
"%s crtl_request : bRequestType:0x%x bRequest:0x%x Value:0x%x\n",
|
||||||
|
__func__, ctrl->bRequestType, ctrl->bRequest, value);
|
||||||
|
|
||||||
switch ((ctrl->bRequestType << 8) | ctrl->bRequest) {
|
switch ((ctrl->bRequestType << 8) | ctrl->bRequest) {
|
||||||
case ((USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8
|
case ((USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8
|
||||||
|
|
|
@ -520,7 +520,7 @@ static void f_midi_transmit(struct f_midi *midi, struct usb_request *req)
|
||||||
req = midi_alloc_ep_req(ep, midi->buflen);
|
req = midi_alloc_ep_req(ep, midi->buflen);
|
||||||
|
|
||||||
if (!req) {
|
if (!req) {
|
||||||
ERROR(midi, "gmidi_transmit: alloc_ep_request failed\n");
|
ERROR(midi, "%s: alloc_ep_request failed\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
req->length = 0;
|
req->length = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue