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':
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'
};
};
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,
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,
continue;
- case 'b':
+ case 'B':
bv = (gboolean) va_arg (args, double);
RSPAMD_PRINTF_APPEND (bv ? "true" : "false", bv ? 4 : 5);
* %[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 *