Mercurial > masqmail
changeset 236:5a0e8ed56c2a
debug msgs: improved the display of function return values
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Fri, 22 Oct 2010 11:15:24 -0300 (2010-10-22) |
parents | 92063f90f9be |
children | 5f9f3a65032e |
files | src/queue.c src/spool.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/queue.c Fri Oct 22 11:09:57 2010 -0300 +++ b/src/queue.c Fri Oct 22 11:15:24 2010 -0300 @@ -98,7 +98,7 @@ if (msg_list != NULL) { ok = deliver_msg_list(msg_list, DLVR_ALL); destroy_msg_list(msg_list); - logwrite(LOG_NOTICE, " deliver_msg_list()=%d.\n", ok); + DEBUG(5) debugf(" deliver_msg_list() returned: %d\n", ok); } logwrite(LOG_NOTICE, "Finished queue run.\n");
--- a/src/spool.c Fri Oct 22 11:09:57 2010 -0300 +++ b/src/spool.c Fri Oct 22 11:15:24 2010 -0300 @@ -209,11 +209,12 @@ DEBUG(4) debugf("msg_spool_read():\n"); /* header spool: */ ok = spool_read_header(msg); - DEBUG(4) debugf(" spool_read_header()=%d, do_readdata=%d\n", ok, do_readdata); + DEBUG(4) debugf(" spool_read_header() returned: %d (do_readdata had been: %d)\n", + ok, do_readdata); if (ok && do_readdata) { /* data spool: */ ok = spool_read_data(msg); - DEBUG(4) debugf(" spool_read_data()=%d\n", ok); + DEBUG(4) debugf(" spool_read_data() returned: %d\n", ok); } return msg; }