Re: [PATCH 11/11] usb/class: use printk_ratelimited() instead of printk_ratelimit()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 16 Jun 2011 14:15:54 +0200
Manuel Zerpies <manuel.f.zerpies@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> +++ b/drivers/usb/class/usblp.c
> @@ -348,8 +349,7 @@ static int usblp_check_status(struct usblp *usblp, int err)
>  	mutex_lock(&usblp->mut);
>  	if ((error = usblp_read_status(usblp, usblp->statusbuf)) < 0) {
>  		mutex_unlock(&usblp->mut);
> -		if (printk_ratelimit())
> -			printk(KERN_ERR
> +		printk_ratelimited(KERN_ERR
>  				"usblp%d: error %d reading printer status\n",

I wish you went a step further and placed the state into usblp,
but it works for now, ACK. I should've done it myself, really.

-- Pete
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux