diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-07-01 22:04:19 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-07-01 22:04:19 +0100 |
commit | d7e471f654c576898a1559005561990806a97fcd (patch) | |
tree | ec645080f42d53613adb005c63f7e548fcb9d8f1 /src | |
parent | 15f8323055b641b2cccc4aa8af089fd7b47c20a5 (diff) | |
download | ipxe-d7e471f654c576898a1559005561990806a97fcd.zip ipxe-d7e471f654c576898a1559005561990806a97fcd.tar.gz ipxe-d7e471f654c576898a1559005561990806a97fcd.tar.bz2 |
Improve debugging
Diffstat (limited to 'src')
-rw-r--r-- | src/net/udp/tftp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/udp/tftp.c b/src/net/udp/tftp.c index a756004..f42a96b 100644 --- a/src/net/udp/tftp.c +++ b/src/net/udp/tftp.c @@ -111,6 +111,9 @@ static void tftp_free ( struct refcnt *refcnt ) { */ static void tftp_done ( struct tftp_request *tftp, int rc ) { + DBGC ( tftp, "TFTP %p finished with status %d (%s)\n", + tftp, rc, strerror ( rc ) ); + /* Stop the retry timer */ stop_timer ( &tftp->timer ); @@ -188,6 +191,9 @@ static int tftp_send_ack ( struct tftp_request *tftp ) { .dest = ( struct sockaddr * ) &tftp->peer, }; + DBGC2 ( tftp, "TFTP %p sending ACK for block %d\n", + tftp, tftp->state ); + /* Allocate buffer */ iobuf = xfer_alloc_iob ( &tftp->socket, sizeof ( *ack ) ); if ( ! iobuf ) |