Merge pull request #503 from bloqaudio/fix/uip-fragment-log-rate-limit

uip: rate-limit the dropped-fragment log
This commit is contained in:
feelfree69 authored and GitHub committed 2026-10-24 16:40:33 +02:00
commit 7e0bc93b55
4 files changed
+35 -1

No files matched your search

+13
View File
@@ -305,6 +305,19 @@ void itoa(uint8_t v)
}
void itoa_no_syslog(uint8_t v)
{
uint8_t t = (v / 100);
uint8_t print_zeros = t;
if (print_zeros)
write_char_no_syslog('0' + t);
t = (v / 10) % 10;
print_zeros |= t;
if (print_zeros)
write_char_no_syslog('0' + t);
write_char_no_syslog('0' + (v % 10));
}
/* Same as itoa(), one decade wider: enough for a port number. Kept separate
* rather than widening itoa() itself, because every existing caller passes a
* byte and would start paying for 16-bit divisions it does not need. */