Be more verbose
This commit is contained in:
parent
b187e3ad66
commit
4c2d25f2b8
1 changed files with 3 additions and 1 deletions
4
nmrp.c
4
nmrp.c
|
|
@ -357,6 +357,8 @@ static void nmrp_drain(void* arg)
|
|||
// we drain the NMRP receive buffer here, otherwise it might seem
|
||||
// as if these packets arrived *after* the TFTP upload.
|
||||
|
||||
long long beg = millis();
|
||||
|
||||
struct nmrp_pkt rx;
|
||||
int i = 0;
|
||||
|
||||
|
|
@ -370,7 +372,7 @@ static void nmrp_drain(void* arg)
|
|||
}
|
||||
|
||||
if (verbosity > 1) {
|
||||
printf("Drained %d packet(s) from rx buffer\n", i);
|
||||
printf("Drained %d packet(s) from rx buffer in %lld ms\n", i, millis() - beg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue