Browse Source

Improve debugging

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
d7e471f654
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/net/udp/tftp.c

+ 6
- 0
src/net/udp/tftp.c View File

@@ -111,6 +111,9 @@ static void tftp_free ( struct refcnt *refcnt ) {
111 111
  */
112 112
 static void tftp_done ( struct tftp_request *tftp, int rc ) {
113 113
 
114
+	DBGC ( tftp, "TFTP %p finished with status %d (%s)\n",
115
+	       tftp, rc, strerror ( rc ) );
116
+
114 117
 	/* Stop the retry timer */
115 118
 	stop_timer ( &tftp->timer );
116 119
 
@@ -188,6 +191,9 @@ static int tftp_send_ack ( struct tftp_request *tftp ) {
188 191
 		.dest = ( struct sockaddr * ) &tftp->peer,
189 192
 	};
190 193
 
194
+	DBGC2 ( tftp, "TFTP %p sending ACK for block %d\n",
195
+		tftp, tftp->state );
196
+
191 197
 	/* Allocate buffer */
192 198
 	iobuf = xfer_alloc_iob ( &tftp->socket, sizeof ( *ack ) );
193 199
 	if ( ! iobuf )

Loading…
Cancel
Save