# HG changeset patch # User markus schnalke # Date 1287756924 10800 # Node ID 5a0e8ed56c2a28c078a1768b0c8233ad2e9b7d11 # Parent 92063f90f9be4f3c29a16b488f6548c53172e647 debug msgs: improved the display of function return values diff -r 92063f90f9be -r 5a0e8ed56c2a src/queue.c --- 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"); diff -r 92063f90f9be -r 5a0e8ed56c2a src/spool.c --- 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; }