Skip to content

Commit bab9430

Browse files
lpereirajukkar
authored andcommitted
net: tcp: Print pointer to state when transitioning
This aids in debugging logs to know which state structure transitioned to which state. Change-Id: I5bb1f34431e162f422513fcb40a2178e24e6fd84 Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
1 parent 4ed6ed0 commit bab9430

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/yaip/tcp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,8 @@ void net_tcp_change_state(struct net_tcp *tcp,
750750
NET_ASSERT(new_state >= NET_TCP_CLOSED &&
751751
new_state <= NET_TCP_CLOSING);
752752

753-
NET_DBG("%s (%d) => %s (%d)",
754-
net_tcp_state_str(tcp->state), tcp->state,
753+
NET_DBG("state@%p %s (%d) => %s (%d)",
754+
tcp, net_tcp_state_str(tcp->state), tcp->state,
755755
net_tcp_state_str(new_state), new_state);
756756

757757
#if NET_DEBUG

0 commit comments

Comments
 (0)