From: Todd Lyons Date: Mon, 12 May 2014 15:03:08 +0000 (-0700) Subject: Provide better sprintf debug output for callers X-Git-Tag: exim-4_83_RC1~30 X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=commitdiff_plain;h=a37a8eec3f4c73e604c23d73c9264c8ae95a0037 Provide better sprintf debug output for callers --- diff --git a/src/src/string.c b/src/src/string.c index 365eaec03..f216e5a86 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -717,7 +717,8 @@ uschar buffer[STRING_SPRINTF_BUFFER_SIZE]; va_start(ap, format); if (!string_vformat(buffer, sizeof(buffer), format, ap)) log_write(0, LOG_MAIN|LOG_PANIC_DIE, - "string_sprintf expansion was longer than " SIZE_T_FMT, sizeof(buffer)); + "string_sprintf expansion was longer than " SIZE_T_FMT " (%s)", + sizeof(buffer), format); va_end(ap); return string_copy(buffer); }