]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use %u instead of %d
authorMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 01:04:33 +0000 (12:04 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 03:08:26 +0000 (14:08 +1100)
lib/dns/dnstap.c

index 9c58a79ee87e2a440a1333f003d052835508a792..90227625440b8d1f144431050ae55d6414a116fa 100644 (file)
@@ -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 "));