Mercurial > masqmail
changeset 208:3708b655a371
added newlines to the end of log and debug messages where missing
author | meillo@marmaro.de |
---|---|
date | Sun, 18 Jul 2010 21:49:15 +0200 (2010-07-18) |
parents | dcb315792513 |
children | 10da50168dab |
files | src/header.c src/masqmail.c src/online.c src/smtp_in.c src/spool.c |
diffstat | 5 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/header.c Sun Jul 18 21:41:48 2010 +0200 +++ b/src/header.c Sun Jul 18 21:49:15 2010 +0200 @@ -267,7 +267,7 @@ hdr->header = g_strdup(line); hdr->value = hdr->header + (hdr->value - line); - DEBUG(4) debugf("header: %d = %s", hdr->id, hdr->header); + DEBUG(4) debugf("header: %d = %s\n", hdr->id, hdr->header); return hdr; }
--- a/src/masqmail.c Sun Jul 18 21:41:48 2010 +0200 +++ b/src/masqmail.c Sun Jul 18 21:49:15 2010 +0200 @@ -153,7 +153,7 @@ if ((pid = fork()) > 0) { exit(EXIT_SUCCESS); } else if (pid < 0) { - logwrite(LOG_ALERT, "could not fork!"); + logwrite(LOG_ALERT, "could not fork!\n"); exit(EXIT_FAILURE); } } @@ -173,7 +173,7 @@ fclose(stderr); logopen(); - logwrite(LOG_NOTICE, "%s %s daemon starting", PACKAGE, VERSION); + logwrite(LOG_NOTICE, "%s %s daemon starting\n", PACKAGE, VERSION); listen_port(do_listen ? conf.listen_addresses : NULL, queue_interval, argv); } @@ -256,7 +256,7 @@ } else exit(EXIT_FAILURE); } else if (pid < 0) { - logwrite(LOG_ALERT, "could not fork for delivery, id = %s", msg->uid); + logwrite(LOG_ALERT, "could not fork for delivery, id = %s\n", msg->uid); } } } else {
--- a/src/online.c Sun Jul 18 21:41:48 2010 +0200 +++ b/src/online.c Sun Jul 18 21:49:15 2010 +0200 @@ -112,7 +112,7 @@ logwrite(LOG_NOTICE, "not online.\n"); return NULL; } else { - logwrite(LOG_ALERT, "stat of %s failed: %s", conf.online_file, strerror(errno)); + logwrite(LOG_ALERT, "stat of %s failed: %s\n", conf.online_file, strerror(errno)); return NULL; }
--- a/src/smtp_in.c Sun Jul 18 21:41:48 2010 +0200 +++ b/src/smtp_in.c Sun Jul 18 21:49:15 2010 +0200 @@ -143,7 +143,7 @@ vsnprintf(buf, 255, fmt, args_copy); va_end(args_copy); - debugf(">>>%s", buf); + debugf(">>>%s\n", buf); } vfprintf(out, fmt, args); @@ -360,7 +360,7 @@ if (pid == 0) { _exit(deliver(msg)); } else if (pid < 0) { - logwrite(LOG_ALERT, "could not fork for delivery, id = %s", msg->uid); + logwrite(LOG_ALERT, "could not fork for delivery, id = %s\n", msg->uid); } } psc->rcpt_seen = psc->from_seen = FALSE;
--- a/src/spool.c Sun Jul 18 21:41:48 2010 +0200 +++ b/src/spool.c Sun Jul 18 21:49:15 2010 +0200 @@ -146,7 +146,7 @@ break; } else if (strncasecmp(buf, "MF:", 3) == 0) { msg->return_path = create_address(&(buf[3]), TRUE); - DEBUG(3) debugf("spool_read: MAIL FROM: %s", msg->return_path->address); + DEBUG(3) debugf("spool_read: MAIL FROM: %s\n", msg->return_path->address); } else if (strncasecmp(buf, "RT:", 3) == 0) { address *addr; addr = spool_scan_rcpt(buf);