diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-09-16 00:35:00 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-09-21 10:13:16 +0200 |
commit | 87245f1f1183083b219eaa72861889dba84d128b (patch) | |
tree | ff74dd0455e40809840c226977f7c846b4303f6f | |
parent | d77cd7fefc0d288b362f3f17bb6fd6c073ef4217 (diff) | |
download | linux-87245f1f1183083b219eaa72861889dba84d128b.tar.bz2 |
can: dev: can_put_echo_skb(): print number of echo_skb that is occupied
This patch prints the number of the occupied echo_skb, to ease
implementing and debugging of new drivers.
Link: https://lore.kernel.org/r/20200915223527.1417033-11-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | drivers/net/can/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c index 68834a2853c9..dd443e5d8cb7 100644 --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c @@ -463,7 +463,7 @@ void can_put_echo_skb(struct sk_buff *skb, struct net_device *dev, priv->echo_skb[idx] = skb; } else { /* locking problem with netif_stop_queue() ?? */ - netdev_err(dev, "%s: BUG! echo_skb is occupied!\n", __func__); + netdev_err(dev, "%s: BUG! echo_skb %d is occupied!\n", __func__, idx); kfree_skb(skb); } } |