Be more verbose

This commit is contained in:
Joseph C. Lehner 2023-10-18 17:30:55 +02:00
parent b187e3ad66
commit 4c2d25f2b8

4
nmrp.c
View file

@ -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);
}
}