diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-07-03 21:46:57 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-07-03 21:46:57 +0000 |
commit | ad7f496c36025a4177e061bbf7d1205d38685316 (patch) | |
tree | 7319b0a8949b331f4db7f52e389c169008577b79 /src | |
parent | 275d57ae1e7f8d5a2e4883527d06fe6e98e6ed51 (diff) | |
download | s6-dns-ad7f496c36025a4177e061bbf7d1205d38685316.tar.xz |
Fix debug stuff
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs6dns/s6dns_hosts_compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs6dns/s6dns_hosts_compile.c b/src/libs6dns/s6dns_hosts_compile.c index a3559fc..d4fc184 100644 --- a/src/libs6dns/s6dns_hosts_compile.c +++ b/src/libs6dns/s6dns_hosts_compile.c @@ -306,7 +306,7 @@ static int name_write_iter (void *data, void *aux) char keybase[4] = "q4:" ; struct iovec kv[2] = { { .iov_base = keybase, .iov_len = 3 }, { .iov_base = blah->hd->storage.s + node->pos, .iov_len = strlen(blah->hd->storage.s + node->pos) + 1 } } ; struct iovec dv = { .iov_base = node->ipv4.s, .iov_len = node->ipv4.len } ; - LOLDEBUG("name_write_iter: name: %s, ipv4.len: %u, ipv6.len: %u", blah->hd->storage.s + node->pos, (unsigned int)node->ipv4.len, (unsigned int)node->ipv6.len) ; + LOLDEBUG("name_write_iter: name: %s, ipv4.len: %zu, ipv6.len: %zu", blah->hd->storage.s + node->pos, node->ipv4.len, node->ipv6.len) ; if (node->ipv4.len && !cdbmake_addv(blah->cm, kv, 2, &dv, 1)) return 0 ; if (node->ipv6.len) { @@ -327,7 +327,7 @@ static int ip_write_iter (void *data, void *aux) char fmt[IP6_FMT] ; if (blah->key[1] == '6') fmt[ip6_fmt(fmt, node->addr)] = 0 ; else fmt[ip4_fmt(fmt, node->addr)] = 0 ; - LOLDEBUG("ip_write_iter: %s: names: %u", fmt, (unsigned int)n) ; + LOLDEBUG("ip_write_iter: %s: names: %zu", fmt, n) ; } #endif if (n) |