diff options
-rw-r--r-- | clang-plugin/printf_check.cc | 4 | ||||
-rw-r--r-- | src/libserver/cfg_rcl.c | 4 | ||||
-rw-r--r-- | src/libutil/printf.c | 2 | ||||
-rw-r--r-- | src/libutil/printf.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/clang-plugin/printf_check.cc b/clang-plugin/printf_check.cc index 6fd49c439..f27881e9f 100644 --- a/clang-plugin/printf_check.cc +++ b/clang-plugin/printf_check.cc @@ -190,7 +190,7 @@ namespace rspamd { case 'D': return llvm::make_unique<PrintfArgChecker> (int32_arg_handler, this->pcontext, this->ci); - case 'b': + case 'B': return llvm::make_unique<PrintfArgChecker> (gboolean_arg_handler, this->pcontext, this->ci); case 'T': @@ -372,7 +372,7 @@ namespace rspamd { format_specs = { 's', 'd', 'l', 'L', 'v', 'V', 'f', 'F', 'g', 'G', - 'T', 'z', 'D', 'c', 'p', 'P', 'e', 'b' + 'T', 'z', 'D', 'c', 'p', 'P', 'e', 'B' }; }; diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 014a44183..7ddc14f93 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -2030,7 +2030,7 @@ rspamd_rcl_parse_struct_string (rspamd_mempool_t *pool, break; case UCL_BOOLEAN: *target = rspamd_mempool_alloc (pool, num_str_len); - rspamd_snprintf (*target, num_str_len, "%b", (gboolean)obj->value.iv); + rspamd_snprintf (*target, num_str_len, "%B", (gboolean)obj->value.iv); break; default: g_set_error (err, @@ -2378,7 +2378,7 @@ rspamd_rcl_parse_struct_string_list (rspamd_mempool_t *pool, break; case UCL_BOOLEAN: val = rspamd_mempool_alloc (pool, num_str_len); - rspamd_snprintf (val, num_str_len, "%b", (gboolean)cur->value.iv); + rspamd_snprintf (val, num_str_len, "%B", (gboolean)cur->value.iv); break; default: g_set_error (err, diff --git a/src/libutil/printf.c b/src/libutil/printf.c index 047532dd2..34638dbf6 100644 --- a/src/libutil/printf.c +++ b/src/libutil/printf.c @@ -738,7 +738,7 @@ rspamd_vprintf_common (rspamd_printf_append_func func, continue; - case 'b': + case 'B': bv = (gboolean) va_arg (args, double); RSPAMD_PRINTF_APPEND (bv ? "true" : "false", bv ? 4 : 5); diff --git a/src/libutil/printf.h b/src/libutil/printf.h index f2c46ffc9..95d344bee 100644 --- a/src/libutil/printf.h +++ b/src/libutil/printf.h @@ -41,7 +41,7 @@ * %[0][width][.width]F long double * %[0][width][.width]g double * %[0][width][.width]G long double - * %b boolean (true or false) + * %B boolean (true or false) * %P pid_t * %r rlim_t * %p void * |