From: Greg Kroah-Hartman Date: Tue, 14 Jun 2016 20:41:07 +0000 (-0700) Subject: usbip: rate limit get_frame_number message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=083d5ad1a924e79ecf92be37cce9f1efa5c1d240;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git usbip: rate limit get_frame_number message It's annoying to constantly see the same "Not yet implemented" message over and over with nothing able to be done about it, so rate limit it for now to keep user's logs "clean". Reported-by: Lars Täuber Tested-by: Lars Täuber Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/usbip/vhci_hcd.c b/drivers/usb/usbip/vhci_hcd.c index fca51105974e..2e0450bec1b1 100644 --- a/drivers/usb/usbip/vhci_hcd.c +++ b/drivers/usb/usbip/vhci_hcd.c @@ -941,7 +941,7 @@ static void vhci_stop(struct usb_hcd *hcd) static int vhci_get_frame_number(struct usb_hcd *hcd) { - pr_err("Not yet implemented\n"); + dev_err_ratelimited(&hcd->self.root_hub->dev, "Not yet implemented\n"); return 0; }