mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 16:01:38 +03:00
Improve debugging
This commit is contained in:
@@ -111,6 +111,9 @@ static void tftp_free ( struct refcnt *refcnt ) {
|
|||||||
*/
|
*/
|
||||||
static void tftp_done ( struct tftp_request *tftp, int rc ) {
|
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 the retry timer */
|
||||||
stop_timer ( &tftp->timer );
|
stop_timer ( &tftp->timer );
|
||||||
|
|
||||||
@@ -188,6 +191,9 @@ static int tftp_send_ack ( struct tftp_request *tftp ) {
|
|||||||
.dest = ( struct sockaddr * ) &tftp->peer,
|
.dest = ( struct sockaddr * ) &tftp->peer,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
DBGC2 ( tftp, "TFTP %p sending ACK for block %d\n",
|
||||||
|
tftp, tftp->state );
|
||||||
|
|
||||||
/* Allocate buffer */
|
/* Allocate buffer */
|
||||||
iobuf = xfer_alloc_iob ( &tftp->socket, sizeof ( *ack ) );
|
iobuf = xfer_alloc_iob ( &tftp->socket, sizeof ( *ack ) );
|
||||||
if ( ! iobuf )
|
if ( ! iobuf )
|
||||||
|
|||||||
Reference in New Issue
Block a user