Commit 7472cd35 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

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

parent 049a49c2
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]
--- 9.11.0a1 released ---
4367. [bug] Remove unnecessary assignment of loadtime in
......@@ -1416,7 +1416,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),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment