From 92f2b4e3b24164d21fa9e95d21e77c3a61c77ef6 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 12 Feb 2007 19:35:22 +0000 Subject: [PATCH] Extra logging activated in MacroVars --- ChangeLog | 3 +++ lib/mbdiesel.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 365fd9de..f829b425 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ $Id$ v0.91.3 11-Feb-2007 + mbselib: + Extra logging activated in MacroVars. + mbuser: Set default editor on erased records. diff --git a/lib/mbdiesel.c b/lib/mbdiesel.c index 1f9dcc54..090dddb5 100644 --- a/lib/mbdiesel.c +++ b/lib/mbdiesel.c @@ -68,7 +68,7 @@ void MacroVars( const char *codes, const char *fmt, ...) break; } dieselrc = diesel(tmp1,tmp2); - if (dieselrc) { + if (dieselrc || (fmt[j] == 's')) { Syslog('!', "MacroVars error %d argument %d, macro %c type %c", dieselrc, j, codes[j], fmt[j]); // if (fmt[j] == 's') // Syslogp('!', printable(va_arg(ap, char *), 0));