projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e84f44e
)
can: kvaser_usb: ratelimit errors if incomplete messages are received
author
Jimmy Assarsson
<
[email protected]
>
Tue, 21 Nov 2017 07:22:28 +0000
(08:22 +0100)
committer
Marc Kleine-Budde
<
[email protected]
>
Fri, 1 Dec 2017 10:20:52 +0000
(11:20 +0100)
Avoid flooding the kernel log with "Formate error", if incomplete message
are received.
Signed-off-by: Jimmy Assarsson <
[email protected]
>
Cc: linux-stable <
[email protected]
>
Signed-off-by: Marc Kleine-Budde <
[email protected]
>
drivers/net/can/usb/kvaser_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/usb/kvaser_usb.c
b/drivers/net/can/usb/kvaser_usb.c
index d87e330a20b3f4821fccde5ebd9aea44a1f93489..f95945915d209df8353645c6390702d3e67d694d 100644
(file)
--- a/
drivers/net/can/usb/kvaser_usb.c
+++ b/
drivers/net/can/usb/kvaser_usb.c
@@
-609,8
+609,8
@@
static int kvaser_usb_wait_msg(const struct kvaser_usb *dev, u8 id,
}
if (pos + tmp->len > actual_len) {
- dev_err(dev->udev->dev.parent,
- "Format error\n");
+ dev_err
_ratelimited
(dev->udev->dev.parent,
+
"Format error\n");
break;
}
@@
-1353,7
+1353,8
@@
static void kvaser_usb_read_bulk_callback(struct urb *urb)
}
if (pos + msg->len > urb->actual_length) {
- dev_err(dev->udev->dev.parent, "Format error\n");
+ dev_err_ratelimited(dev->udev->dev.parent,
+ "Format error\n");
break;
}