]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fixed a bug cause Rupert said to
authorOndřej Surý <ondrej@sury.org>
Thu, 25 Feb 2021 17:02:41 +0000 (18:02 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 3 Mar 2021 14:32:01 +0000 (15:32 +0100)
lib/dns/adb.c
lib/dns/dispatch.c
lib/isc/mem.c

index 5e8fb278b7cad82b5cf95272ade000f631ef794c..c25ead79a4bdf8a5865a23060972b2ce70b7a321 100644 (file)
@@ -3497,7 +3497,7 @@ dump_adb(dns_adb_t *adb, FILE *f, bool debug, isc_stdtime_t now) {
        fprintf(f, "; [plain success/timeout]\n;\n");
        if (debug) {
                LOCK(&adb->reflock);
-               fprintf(f, "; addr %p, erefcnt %u, irefcnt %u, finds out %u\n",
+               fprintf(f, "; addr %p, erefcnt %u, irefcnt %u, finds out %zu\n",
                        adb, adb->erefcnt, adb->irefcnt,
                        isc_mempool_getallocated(adb->nhmp));
                UNLOCK(&adb->reflock);
index 54d60781c814a8545166ee0238787d0bd1bc2424..e532ed3226409affef9dafe314d4c7989d40c4d6 100644 (file)
@@ -1619,7 +1619,7 @@ static bool
 destroy_mgr_ok(dns_dispatchmgr_t *mgr) {
        mgr_log(mgr, LVL(90),
                "destroy_mgr_ok: shuttingdown=%d, listnonempty=%d, "
-               "depool=%d, rpool=%d, dpool=%d",
+               "depool=%zu, rpool=%zu, dpool=%zu",
                MGR_IS_SHUTTINGDOWN(mgr), !ISC_LIST_EMPTY(mgr->list),
                isc_mempool_getallocated(mgr->depool),
                isc_mempool_getallocated(mgr->rpool),
index 5f9e42d2b0234129f65335034707ef1d63b23e00..67d1c1d8051c6ca5fa776cbdbf559609e51fb323 100644 (file)
@@ -1243,13 +1243,11 @@ isc_mempool_destroy(isc_mempool_t **mpctxp) {
        isc_mem_t *mctx;
        element *item;
 
-       
+
        mpctx = *mpctxp;
        *mpctxp = NULL;
        mpctx->magic = 0;
 
-       fprintf(stderr, "%s(%p)\n", __func__, mpctx);
-
        if (atomic_load_acquire(&mpctx->allocated) > 0) {
                UNEXPECTED_ERROR(__FILE__, __LINE__,
                                 "isc_mempool_destroy(): mempool %s "