]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4584. [bug] A number of memory usage statistics were not properly
authorMark Andrews <marka@isc.org>
Thu, 20 Apr 2017 00:21:00 +0000 (10:21 +1000)
committerMark Andrews <marka@isc.org>
Thu, 20 Apr 2017 00:21:00 +0000 (10:21 +1000)
                        reported when they exceeded 4G.  [RT #44750]

CHANGES
lib/dns/cache.c

diff --git a/CHANGES b/CHANGES
index e87f2af887853885814be3ec3c6668397bc5097c..49984877ce83224796c98f0a673682b2363a36be 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+4584.  [bug]           A number of memory usage statistics were not properly
+                       reported when they exceeded 4G.  [RT #44750]
+
 4583.  [func]          "host -A" returns most records for a name but
                        omits RRSIG, NSEC and NSEC3. (Thanks to Tony Finch.)
                        [RT #43032]
index 5f05be22bc361075d610dd3a5c1632b2ef82a498..e6e6f5d82ca45c99e0b9592f1ceeed86de226ee1 100644 (file)
@@ -1411,18 +1411,24 @@ dns_cache_dumpstats(dns_cache_t *cache, FILE *fp) {
                (isc_uint64_t) dns_db_hashsize(cache->db),
                "cache database hash buckets");
 
-       fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_total(cache->mctx),
+       fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
+               (isc_uint64_t) isc_mem_total(cache->mctx),
                "cache tree memory total");
-       fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_inuse(cache->mctx),
+       fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
+               (isc_uint64_t) isc_mem_inuse(cache->mctx),
                "cache tree memory in use");
-       fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_maxinuse(cache->mctx),
+       fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
+               (isc_uint64_t) isc_mem_maxinuse(cache->mctx),
                "cache tree highest memory in use");
 
-       fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_total(cache->hmctx),
+       fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
+               (isc_uint64_t) isc_mem_total(cache->hmctx),
                "cache heap memory total");
-       fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_inuse(cache->hmctx),
+       fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
+               (isc_uint64_t) isc_mem_inuse(cache->hmctx),
                "cache heap memory in use");
-       fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_maxinuse(cache->hmctx),
+       fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
+               (isc_uint64_t) isc_mem_maxinuse(cache->hmctx),
                "cache heap highest memory in use");
 }