diff options
author | norly <ny-git@enpas.org> | 2022-06-06 13:39:00 +0200 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2022-06-06 13:39:00 +0200 |
commit | 36204e790db744dc41c19636facce09c50257466 (patch) | |
tree | 5f8eaf36d52b4c95071045cfbec61a1b210633cb /module/can327.c | |
parent | cb39fc240dcef350a237651ff4dee20f2bcf96e3 (diff) |
On RX buffer overflow, printk remaining input size
If can327_ldisc_rx() is called with a large 'count' because the UART
driver feeds us huge buffers, then the user should have a chance to
know and report this.
In this case, we'll have to increase ELM327_SIZE_RXBUF.
Diffstat (limited to 'module/can327.c')
-rw-r--r-- | module/can327.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/can327.c b/module/can327.c index fc99dea..da81fa3 100644 --- a/module/can327.c +++ b/module/can327.c @@ -993,7 +993,7 @@ static void can327_ldisc_rx(struct tty_struct *tty, } if (count >= 0) { - netdev_err(elm->dev, "Receive buffer overflowed. Bad chip or wiring?"); + netdev_err(elm->dev, "Receive buffer overflowed. Bad chip or wiring? count = %i", count); elm327_uart_side_failure(elm); |