From b513bbe9ff21fe0f7cbc147efebfae293a2e292f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 15 Feb 2018 12:04:33 +1100 Subject: [PATCH] use %u instead of %d --- lib/dns/dnstap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/dnstap.c b/lib/dns/dnstap.c index 9c58a79ee8..9022762544 100644 --- a/lib/dns/dnstap.c +++ b/lib/dns/dnstap.c @@ -1247,7 +1247,7 @@ dns_dt_datatotext(dns_dtdata_t *d, isc_buffer_t **dest) { /* Message size */ if (d->msgdata.base != NULL) { - snprintf(buf, sizeof(buf), "%zdb ", (size_t) d->msgdata.length); + snprintf(buf, sizeof(buf), "%zub ", (size_t) d->msgdata.length); CHECK(putstr(dest, buf)); } else CHECK(putstr(dest, "0b "));