Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114469
b: refs/heads/master
c: 7d89fe1
h: refs/heads/master
i:
  114467: 3a1c260
v: v3
  • Loading branch information
From: Greg Kroah-Hartman authored and Jiri Kosina committed Oct 14, 2008
1 parent fa9b298 commit bd1f102
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddbe32491951c092abbd3647fd104e79deb19528
refs/heads/master: 7d89fe12bd21f1383a6a240114221bf31fd71904
17 changes: 10 additions & 7 deletions trunk/drivers/hid/usbhid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ static void hid_irq_in(struct urb *urb)
hid_io_error(hid);
return;
default: /* error */
warn("input irq status %d received", urb->status);
dev_warn(&urb->dev->dev, "input irq status %d "
"received\n", urb->status);
}

status = usb_submit_urb(urb, GFP_ATOMIC);
Expand Down Expand Up @@ -327,7 +328,8 @@ static void hid_irq_out(struct urb *urb)
case -ENOENT:
break;
default: /* error */
warn("output irq status %d received", urb->status);
dev_warn(&urb->dev->dev, "output irq status %d "
"received\n", urb->status);
}

spin_lock_irqsave(&usbhid->outlock, flags);
Expand Down Expand Up @@ -380,7 +382,8 @@ static void hid_ctrl(struct urb *urb)
case -EPIPE: /* report not available */
break;
default: /* error */
warn("ctrl urb status %d received", urb->status);
dev_warn(&urb->dev->dev, "ctrl urb status %d "
"received\n", urb->status);
}

if (unplug)
Expand Down Expand Up @@ -418,7 +421,7 @@ void usbhid_submit_report(struct hid_device *hid, struct hid_report *report, uns

if ((head = (usbhid->outhead + 1) & (HID_OUTPUT_FIFO_SIZE - 1)) == usbhid->outtail) {
spin_unlock_irqrestore(&usbhid->outlock, flags);
warn("output queue full");
dev_warn(&hid->dev, "output queue full\n");
return;
}

Expand All @@ -444,7 +447,7 @@ void usbhid_submit_report(struct hid_device *hid, struct hid_report *report, uns

if ((head = (usbhid->ctrlhead + 1) & (HID_CONTROL_FIFO_SIZE - 1)) == usbhid->ctrltail) {
spin_unlock_irqrestore(&usbhid->ctrllock, flags);
warn("control queue full");
dev_warn(&hid->dev, "control queue full\n");
return;
}

Expand Down Expand Up @@ -482,7 +485,7 @@ static int usb_hidinput_input_event(struct input_dev *dev, unsigned int type, un
return -1;

if ((offset = hidinput_find_field(hid, type, code, &field)) == -1) {
warn("event field not found");
dev_warn(&dev->dev, "event field not found\n");
return -1;
}

Expand Down Expand Up @@ -585,7 +588,7 @@ void usbhid_init_reports(struct hid_device *hid)
}

if (err)
warn("timeout initializing reports");
dev_warn(&hid->dev, "timeout initializing reports\n");
}

/*
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/hid/usbhid/usbkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ static void usb_kbd_led(struct urb *urb)
struct usb_kbd *kbd = urb->context;

if (urb->status)
warn("led urb status %d received", urb->status);
dev_warn(&urb->dev->dev, "led urb status %d received\n",
urb->status);

if (*(kbd->leds) == kbd->newleds)
return;
Expand Down

0 comments on commit bd1f102

Please sign in to comment.