]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
can: dev: can_put_echo_skb(): print number of echo_skb that is occupied
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 15 Sep 2020 22:35:00 +0000 (00:35 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 21 Sep 2020 08:13:16 +0000 (10:13 +0200)
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>
drivers/net/can/dev.c

index 68834a2853c9d86a290a2f7cf2de86578f4ad44a..dd443e5d8cb730eb9f0d64e26cedd57e5a7373ff 100644 (file)
@@ -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);
        }
 }