summaryrefslogtreecommitdiff
path: root/ot_accesslist.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-24 04:54:15 +0200
committerDirk Engling <erdgeist@erdgeist.org>2026-10-24 04:54:15 +0200
commitc1ebd067afe4e6a8b4987133cca6f96b7cd8b8df (patch)
tree8678e73950ccb185bf63d811ef133169891481eb /ot_accesslist.c
parentba54aca3a47df0e8c7afde968bd5f7479372a404 (diff)
Use lib formatter for ints
Diffstat (limited to 'ot_accesslist.c')
-rw-r--r--ot_accesslist.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c
index 9b0024c..e20f42c 100644
--- a/ot_accesslist.c
+++ b/ot_accesslist.c
@@ -17,7 +17,6 @@
17#endif 17#endif
18 18
19/* Libowfat */ 19/* Libowfat */
20#include "fmt.h"
21#include "ip6.h" 20#include "ip6.h"
22#include "mmap.h" 21#include "mmap.h"
23 22
@@ -512,9 +511,9 @@ int accesslist_bless_net(ot_net *net, ot_permissions permissions) {
512 if (net->bits < 128) { 511 if (net->bits < 128) {
513 _debug[off++] = '/'; 512 _debug[off++] = '/';
514 if (ip6_isv4mapped(net->address)) 513 if (ip6_isv4mapped(net->address))
515 off += fmt_long(_debug + off, net->bits - 96); 514 off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits - 96);
516 else 515 else
517 off += fmt_long(_debug + off, net->bits); 516 off += snprintf(_debug + off, sizeof(_debug) - off, "%d", net->bits);
518 } 517 }
519 518
520 if (permissions & OT_PERMISSION_MAY_STAT) 519 if (permissions & OT_PERMISSION_MAY_STAT)