Commit 4300114e authored by Guillaume Tucker's avatar Guillaume Tucker Committed by Guillaume Tucker

DEBUG tftp: print length of downloaded data

Change-Id: I34696fae5d179b0298ae347a36827a618221e654
parent 95fa9beb
......@@ -152,6 +152,16 @@ static void tftp_callback(void)
return;
}
#if 1 /* |<-- DEBUG ---- */
const int blocknum_debug = tftp_blocknum - 1;
if (!(blocknum_debug % 1024))
printf("\n%08x ", tftp_total_size);
if (!(blocknum_debug % 16))
printf("#");
#endif /* ---- DEBUG -->| */
// If there's any data, copy it in.
if (new_data_len) {
memcpy(tftp_dest, new_data, new_data_len);
......@@ -176,10 +186,6 @@ static void tftp_callback(void)
// Move on to the next block.
tftp_blocknum++;
if (!(tftp_blocknum % 10)) {
// Give some feedback that something is happening.
printf("#");
}
tftp_got_response = 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment