dovecot-2.0: master: When writing startup errors to stderr, use ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Dec 22 19:51:46 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/76af32fae1e2
changeset: 10521:76af32fae1e2
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 22 12:51:37 2009 -0500
description:
master: When writing startup errors to stderr, use the correct type prefix.

diffstat:

1 file changed, 4 insertions(+), 2 deletions(-)
src/master/main.c |    6 ++++--

diffs (23 lines):

diff -r e3db0a5889b7 -r 76af32fae1e2 src/master/main.c
--- a/src/master/main.c	Mon Dec 21 18:16:17 2009 -0500
+++ b/src/master/main.c	Tue Dec 22 12:51:37 2009 -0500
@@ -159,7 +159,8 @@ startup_fatal_handler(enum log_type type
 	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
 	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);
 }
 


More information about the dovecot-cvs mailing list