Don't use %z format specifier that caused crash with rndc stats on some Visual Studio builds

(cherry picked from commit 7472cd350f)
This commit is contained in:
Mukund Sivaraman
2016-05-19 19:19:57 +05:30
parent 521551909f
commit 1dbce8a78e
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
4368. [bug] Fix a crash when calling "rndc stats" on some
Windows builds because some Visual Studio compilers
generated crashing code for the "%z" printf()
format specifier. [RT #42380]
4367. [bug] Remove unnecessary assignment of loadtime in
zone_touched. [RT #42440]
+2 -1
View File
@@ -1414,7 +1414,8 @@ dns_cache_dumpstats(dns_cache_t *cache, FILE *fp) {
"cache records deleted due to TTL expiration");
fprintf(fp, "%20u %s\n", dns_db_nodecount(cache->db),
"cache database nodes");
fprintf(fp, "%20zu %s\n", dns_db_hashsize(cache->db),
fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
(isc_uint64_t) dns_db_hashsize(cache->db),
"cache database hash buckets");
fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_total(cache->mctx),