From: Timo Sirainen Date: Tue, 22 Dec 2009 17:51:37 +0000 (-0500) Subject: master: When writing startup errors to stderr, use the correct type prefix. X-Git-Tag: 2.0.beta2~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8528b270afdbfe4f01dbe0c0bb9f6e9042163f4;p=thirdparty%2Fdovecot%2Fcore.git master: When writing startup errors to stderr, use the correct type prefix. --HG-- branch : HEAD --- diff --git a/src/master/main.c b/src/master/main.c index f4dc26dda9..80be1816fe 100644 --- a/src/master/main.c +++ b/src/master/main.c @@ -159,7 +159,8 @@ startup_fatal_handler(enum log_type type, int status, va_list args2; VA_COPY(args2, args); - fprintf(stderr, "Fatal: %s\n", t_strdup_vprintf(fmt, args2)); + fprintf(stderr, "%s%s\n", failure_log_type_prefixes[type], + t_strdup_vprintf(fmt, args2)); orig_fatal_callback(type, status, fmt, args); abort(); } @@ -170,7 +171,8 @@ startup_error_handler(enum log_type type, const char *fmt, va_list args) va_list args2; VA_COPY(args2, args); - fprintf(stderr, "Error: %s\n", t_strdup_vprintf(fmt, args2)); + fprintf(stderr, "%s%s\n", failure_log_type_prefixes[type], + t_strdup_vprintf(fmt, args2)); orig_error_callback(type, fmt, args); }