[PATCH v1 27/34] j1939: transport: print some debug information on session creation and relase

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/transport.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c
index 75593ec0852a..ca2571bed0de 100644
--- a/net/can/j1939/transport.c
+++ b/net/can/j1939/transport.c
@@ -238,6 +238,8 @@ static void j1939_session_destroy(struct j1939_session *session)
 	else
 		j1939_sk_errqueue(session, J1939_ERRQUEUE_ACK);
 
+	netdev_dbg(session->priv->ndev, "j1939_session_destroy: 0x%p\n", session);
+
 	skb_queue_purge(&session->skb_queue);
 	__j1939_session_drop(session);
 	j1939_priv_put(session->priv);
@@ -1267,6 +1269,9 @@ static struct j1939_session *j1939_session_new(struct j1939_priv *priv,
 		     HRTIMER_MODE_REL_SOFT);
 	session->rxtimer.function = j1939_tp_rxtimer;
 
+	netdev_dbg(priv->ndev, "j1939_session_new: 0x%p: sa: %02x, da: %02x\n",
+		   session, skcb->addr.sa, skcb->addr.da);
+
 	return session;
 }
 
-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux