diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-14 08:19:08 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-14 08:19:08 -0400 |
| commit | 905ec87e93bc9e01b15c60035cd6a50c636cbaef (patch) | |
| tree | 46fd7618d6511611ffc19eb0dd4d7bc6b90a41c2 /drivers/usb/class/usblp.c | |
| parent | 1d6ae775d7a948c9575658eb41184fd2e506c0df (diff) | |
| parent | 2f4ba45a75d6383b4a1201169a808ffea416ffa0 (diff) | |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'drivers/usb/class/usblp.c')
| -rw-r--r-- | drivers/usb/class/usblp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index 7ce43fb8118a..e195709c9c7f 100644 --- a/drivers/usb/class/usblp.c +++ b/drivers/usb/class/usblp.c | |||
| @@ -310,8 +310,9 @@ static int usblp_check_status(struct usblp *usblp, int err) | |||
| 310 | 310 | ||
| 311 | error = usblp_read_status (usblp, usblp->statusbuf); | 311 | error = usblp_read_status (usblp, usblp->statusbuf); |
| 312 | if (error < 0) { | 312 | if (error < 0) { |
| 313 | err("usblp%d: error %d reading printer status", | 313 | if (printk_ratelimit()) |
| 314 | usblp->minor, error); | 314 | err("usblp%d: error %d reading printer status", |
| 315 | usblp->minor, error); | ||
| 315 | return 0; | 316 | return 0; |
| 316 | } | 317 | } |
| 317 | 318 | ||
| @@ -604,7 +605,9 @@ static int usblp_ioctl(struct inode *inode, struct file *file, unsigned int cmd, | |||
| 604 | 605 | ||
| 605 | case LPGETSTATUS: | 606 | case LPGETSTATUS: |
| 606 | if (usblp_read_status(usblp, usblp->statusbuf)) { | 607 | if (usblp_read_status(usblp, usblp->statusbuf)) { |
| 607 | err("usblp%d: failed reading printer status", usblp->minor); | 608 | if (printk_ratelimit()) |
| 609 | err("usblp%d: failed reading printer status", | ||
| 610 | usblp->minor); | ||
| 608 | retval = -EIO; | 611 | retval = -EIO; |
| 609 | goto done; | 612 | goto done; |
| 610 | } | 613 | } |
