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
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 diff
     1.1 --- a/src/header.c	Sun Jul 18 21:41:48 2010 +0200
     1.2 +++ b/src/header.c	Sun Jul 18 21:49:15 2010 +0200
     1.3 @@ -267,7 +267,7 @@
     1.4  	hdr->header = g_strdup(line);
     1.5  	hdr->value = hdr->header + (hdr->value - line);
     1.6  
     1.7 -	DEBUG(4) debugf("header: %d = %s", hdr->id, hdr->header);
     1.8 +	DEBUG(4) debugf("header: %d = %s\n", hdr->id, hdr->header);
     1.9  
    1.10  	return hdr;
    1.11  }
     2.1 --- a/src/masqmail.c	Sun Jul 18 21:41:48 2010 +0200
     2.2 +++ b/src/masqmail.c	Sun Jul 18 21:49:15 2010 +0200
     2.3 @@ -153,7 +153,7 @@
     2.4  		if ((pid = fork()) > 0) {
     2.5  			exit(EXIT_SUCCESS);
     2.6  		} else if (pid < 0) {
     2.7 -			logwrite(LOG_ALERT, "could not fork!");
     2.8 +			logwrite(LOG_ALERT, "could not fork!\n");
     2.9  			exit(EXIT_FAILURE);
    2.10  		}
    2.11  	}
    2.12 @@ -173,7 +173,7 @@
    2.13  	fclose(stderr);
    2.14  	logopen();
    2.15  
    2.16 -	logwrite(LOG_NOTICE, "%s %s daemon starting", PACKAGE, VERSION);
    2.17 +	logwrite(LOG_NOTICE, "%s %s daemon starting\n", PACKAGE, VERSION);
    2.18  	listen_port(do_listen ? conf.listen_addresses : NULL, queue_interval, argv);
    2.19  }
    2.20  
    2.21 @@ -256,7 +256,7 @@
    2.22  					} else
    2.23  						exit(EXIT_FAILURE);
    2.24  				} else if (pid < 0) {
    2.25 -					logwrite(LOG_ALERT, "could not fork for delivery, id = %s", msg->uid);
    2.26 +					logwrite(LOG_ALERT, "could not fork for delivery, id = %s\n", msg->uid);
    2.27  				}
    2.28  			}
    2.29  		} else {
     3.1 --- a/src/online.c	Sun Jul 18 21:41:48 2010 +0200
     3.2 +++ b/src/online.c	Sun Jul 18 21:49:15 2010 +0200
     3.3 @@ -112,7 +112,7 @@
     3.4  			logwrite(LOG_NOTICE, "not online.\n");
     3.5  			return NULL;
     3.6  		} else {
     3.7 -			logwrite(LOG_ALERT, "stat of %s failed: %s", conf.online_file, strerror(errno));
     3.8 +			logwrite(LOG_ALERT, "stat of %s failed: %s\n", conf.online_file, strerror(errno));
     3.9  			return NULL;
    3.10  		}
    3.11  
     4.1 --- a/src/smtp_in.c	Sun Jul 18 21:41:48 2010 +0200
     4.2 +++ b/src/smtp_in.c	Sun Jul 18 21:49:15 2010 +0200
     4.3 @@ -143,7 +143,7 @@
     4.4  		vsnprintf(buf, 255, fmt, args_copy);
     4.5  		va_end(args_copy);
     4.6  
     4.7 -		debugf(">>>%s", buf);
     4.8 +		debugf(">>>%s\n", buf);
     4.9  	}
    4.10  
    4.11  	vfprintf(out, fmt, args);
    4.12 @@ -360,7 +360,7 @@
    4.13  				if (pid == 0) {
    4.14  					_exit(deliver(msg));
    4.15  				} else if (pid < 0) {
    4.16 -					logwrite(LOG_ALERT, "could not fork for delivery, id = %s", msg->uid);
    4.17 +					logwrite(LOG_ALERT, "could not fork for delivery, id = %s\n", msg->uid);
    4.18  				}
    4.19  			}
    4.20  			psc->rcpt_seen = psc->from_seen = FALSE;
     5.1 --- a/src/spool.c	Sun Jul 18 21:41:48 2010 +0200
     5.2 +++ b/src/spool.c	Sun Jul 18 21:49:15 2010 +0200
     5.3 @@ -146,7 +146,7 @@
     5.4  			break;
     5.5  		} else if (strncasecmp(buf, "MF:", 3) == 0) {
     5.6  			msg->return_path = create_address(&(buf[3]), TRUE);
     5.7 -			DEBUG(3) debugf("spool_read: MAIL FROM: %s", msg->return_path->address);
     5.8 +			DEBUG(3) debugf("spool_read: MAIL FROM: %s\n", msg->return_path->address);
     5.9  		} else if (strncasecmp(buf, "RT:", 3) == 0) {
    5.10  			address *addr;
    5.11  			addr = spool_scan_rcpt(buf);