[PATCH v1 28/40] j1939: transport: print last command in j1939_xtp_rx_rts_current in cases of error

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

 



Make it easier to debug, why we actually filed.

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

diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c
index 1e15d62993e6..6de8f03082b3 100644
--- a/net/can/j1939/transport.c
+++ b/net/can/j1939/transport.c
@@ -1079,9 +1079,9 @@ static int j1939_xtp_rx_rts_current(struct j1939_session *session,
 
 	if (session->last_cmd != 0) {
 		/* we received a second rts on the same connection */
-		netdev_alert(priv->ndev, "%s: connection exists (%i %02x %02x)\n",
+		netdev_alert(priv->ndev, "%s: connection exists (%i %02x %02x). last cmd: %x\n",
 			     __func__, can_skb_prv(skb)->ifindex, skcb->addr.sa,
-			     skcb->addr.da);
+			     skcb->addr.da, session->last_cmd);
 
 		j1939_session_timers_cancel(session);
 		j1939_session_cancel(session, J1939_XTP_ABORT_BUSY);
-- 
2.19.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