Replace ISC_PRINT_QUADFORMAT with inttypes.h format constants

This commit is contained in:
Ondřej Surý
2018-08-08 09:36:44 +02:00
parent 9e493798c6
commit 64fe6bbaf2
31 changed files with 122 additions and 204 deletions
+9 -8
View File
@@ -19,6 +19,7 @@
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <inttypes.h>
#include <isc/aes.h>
#include <isc/app.h>
@@ -3463,7 +3464,7 @@ configure_dnstap(const cfg_obj_t **maps, dns_view_t *view) {
cfg_obj_log(obj2, named_g_lctx,
ISC_LOG_WARNING,
"'dnstap-output size "
"%" ISC_PRINT_QUADFORMAT "u' "
"%" PRIu64 "' "
"is too large for this "
"system; reducing to %lu",
max_size, (unsigned long)SIZE_MAX);
@@ -3890,7 +3891,7 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist,
cfg_obj_log(obj, named_g_lctx,
ISC_LOG_WARNING,
"'max-cache-size "
"%" ISC_PRINT_QUADFORMAT "u' "
"%" PRIu64 "' "
"is too large for this "
"system; reducing to %lu",
value, (unsigned long)SIZE_MAX);
@@ -3914,8 +3915,8 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist,
cfg_obj_log(obj, named_g_lctx,
ISC_LOG_INFO,
"'max-cache-size %d%%' "
"- setting to %" ISC_PRINT_QUADFORMAT "uMB "
"(out of %" ISC_PRINT_QUADFORMAT "uMB)",
"- setting to %" PRIu64 "MB "
"(out of %" PRIu64 "MB)",
max_cache_size_percent,
(isc_uint64_t)(max_cache_size / (1024*1024)),
totalphys / (1024*1024));
@@ -6791,7 +6792,7 @@ set_limit(const cfg_obj_t **maps, const char *configname,
NAMED_LOGMODULE_SERVER,
result == ISC_R_SUCCESS ?
ISC_LOG_DEBUG(3) : ISC_LOG_WARNING,
"set maximum %s to %" ISC_PRINT_QUADFORMAT "u: %s",
"set maximum %s to %" PRIu64 ": %s",
description, value, isc_result_totext(result));
}
@@ -7242,7 +7243,7 @@ setup_newzones(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
cfg_obj_log(obj, named_g_lctx,
ISC_LOG_ERROR,
"'lmdb-mapsize "
"%" ISC_PRINT_QUADFORMAT "d' "
"%" PRId64 "' "
"is too small",
mapsize);
return (ISC_R_FAILURE);
@@ -7250,7 +7251,7 @@ setup_newzones(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
cfg_obj_log(obj, named_g_lctx,
ISC_LOG_ERROR,
"'lmdb-mapsize "
"%" ISC_PRINT_QUADFORMAT "d' "
"%" PRId64 "' "
"is too large",
mapsize);
return (ISC_R_FAILURE);
@@ -7971,7 +7972,7 @@ load_configuration(const char *filename, named_server_t *server,
if (result == ISC_R_SUCCESS && (isc_resourcevalue_t)maxsocks > nfiles) {
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
NAMED_LOGMODULE_SERVER, ISC_LOG_WARNING,
"max open files (%" ISC_PRINT_QUADFORMAT "u)"
"max open files (%" PRIu64 ")"
" is smaller than max sockets (%u)",
nfiles, maxsocks);
}