[exim-cvs] Provide better sprintf debug output for callers

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Provide better sprintf debug output for callers
Gitweb: http://git.exim.org/exim.git/commitdiff/a37a8eec3f4c73e604c23d73c9264c8ae95a0037
Commit:     a37a8eec3f4c73e604c23d73c9264c8ae95a0037
Parent:     80c974f8633781c6f10a196ed33e6cdce605bcd4
Author:     Todd Lyons <tlyons@???>
AuthorDate: Mon May 12 08:03:08 2014 -0700
Committer:  Todd Lyons <tlyons@???>
CommitDate: Mon May 12 08:03:08 2014 -0700


    Provide better sprintf debug output for callers
---
 src/src/string.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/src/src/string.c b/src/src/string.c
index 365eaec..f216e5a 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);
 }