Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9369:cc0d7c00c6ce HEAD
master: Expand %m properly at startup errors.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 07 Sep 2009 11:44:38 -0400 |
parents | 597e18c0bc7e |
children | 5f9782109fcf |
files | src/master/main.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/main.c Sun Sep 06 22:40:21 2009 -0400 +++ b/src/master/main.c Mon Sep 07 11:44:38 2009 -0400 @@ -144,9 +144,7 @@ { const struct settings *set = settings_root->defaults; - fputs("Fatal: ", stderr); - vfprintf(stderr, fmt, args); - fputc('\n', stderr); + fprintf(stderr, "Fatal: %s\n", t_strdup_vprintf(fmt, args)); if (*set->log_path == '\0') { i_syslog_fatal_handler(type, status, fmt, args); @@ -160,9 +158,7 @@ { const struct settings *set = settings_root->defaults; - fputs("Error: ", stderr); - vfprintf(stderr, fmt, args); - fputc('\n', stderr); + fprintf(stderr, "Error: %s\n", t_strdup_vprintf(fmt, args)); if (*set->log_path == '\0') { i_syslog_error_handler(type, fmt, args);