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
  */
111
  */
112
 static void tftp_done ( struct tftp_request *tftp, int rc ) {
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
 	/* Stop the retry timer */
117
 	/* Stop the retry timer */
115
 	stop_timer ( &tftp->timer );
118
 	stop_timer ( &tftp->timer );
116
 
119
 
188
 		.dest = ( struct sockaddr * ) &tftp->peer,
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
 	/* Allocate buffer */
197
 	/* Allocate buffer */
192
 	iobuf = xfer_alloc_iob ( &tftp->socket, sizeof ( *ack ) );
198
 	iobuf = xfer_alloc_iob ( &tftp->socket, sizeof ( *ack ) );
193
 	if ( ! iobuf )
199
 	if ( ! iobuf )

Loading…
Cancel
Save