summaryrefslogtreecommitdiffstats
path: root/src/net/tcp.c
diff options
context:
space:
mode:
authorMichael Brown2009-06-23 15:03:09 +0200
committerMichael Brown2009-06-23 15:03:09 +0200
commitf4605970f4658cd3e8a1485c6f74754cabeea517 (patch)
tree5c72bb7c91bace18b41ec782888110cf153cf13c /src/net/tcp.c
parent[tcp] Move high-frequency debug messages to DBGLVL_EXTRA (diff)
downloadipxe-f4605970f4658cd3e8a1485c6f74754cabeea517.tar.gz
ipxe-f4605970f4658cd3e8a1485c6f74754cabeea517.tar.xz
ipxe-f4605970f4658cd3e8a1485c6f74754cabeea517.zip
[tcp] Include current sequence numbers in "timer expired" messages
Diffstat (limited to 'src/net/tcp.c')
-rw-r--r--src/net/tcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c
index b03dfadf..d9f6c2d1 100644
--- a/src/net/tcp.c
+++ b/src/net/tcp.c
@@ -510,8 +510,9 @@ static void tcp_expired ( struct retry_timer *timer, int over ) {
container_of ( timer, struct tcp_connection, timer );
int graceful_close = TCP_CLOSED_GRACEFULLY ( tcp->tcp_state );
- DBGC ( tcp, "TCP %p timer %s in %s\n", tcp,
- ( over ? "expired" : "fired" ), tcp_state ( tcp->tcp_state ) );
+ DBGC ( tcp, "TCP %p timer %s in %s for [%08x,%08x)\n", tcp,
+ ( over ? "expired" : "fired" ), tcp_state ( tcp->tcp_state ),
+ tcp->snd_seq, ( tcp->snd_seq + tcp->snd_sent ) );
assert ( ( tcp->tcp_state == TCP_SYN_SENT ) ||
( tcp->tcp_state == TCP_SYN_RCVD ) ||