From 07d6070ead1579494e251c654f9424ec184b6851 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 22 Dec 2015 16:26:29 +0000 Subject: Remove ambiguity between %b format modifiers --- src/libutil/printf.c | 2 +- src/libutil/printf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libutil') 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 * -- cgit v1.2.3