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
parents 92063f90f9be
children 5f9f3a65032e
files src/queue.c src/spool.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/src/queue.c	Fri Oct 22 11:09:57 2010 -0300
     1.2 +++ b/src/queue.c	Fri Oct 22 11:15:24 2010 -0300
     1.3 @@ -98,7 +98,7 @@
     1.4  	if (msg_list != NULL) {
     1.5  		ok = deliver_msg_list(msg_list, DLVR_ALL);
     1.6  		destroy_msg_list(msg_list);
     1.7 -		logwrite(LOG_NOTICE, "  deliver_msg_list()=%d.\n", ok);
     1.8 +		DEBUG(5) debugf("  deliver_msg_list() returned: %d\n", ok);
     1.9  	}
    1.10  	logwrite(LOG_NOTICE, "Finished queue run.\n");
    1.11  
     2.1 --- a/src/spool.c	Fri Oct 22 11:09:57 2010 -0300
     2.2 +++ b/src/spool.c	Fri Oct 22 11:15:24 2010 -0300
     2.3 @@ -209,11 +209,12 @@
     2.4  	DEBUG(4) debugf("msg_spool_read():\n");
     2.5  	/* header spool: */
     2.6  	ok = spool_read_header(msg);
     2.7 -	DEBUG(4) debugf("  spool_read_header()=%d, do_readdata=%d\n", ok, do_readdata);
     2.8 +	DEBUG(4) debugf("  spool_read_header() returned: %d (do_readdata had been: %d)\n",
     2.9 +	                ok, do_readdata);
    2.10  	if (ok && do_readdata) {
    2.11  		/* data spool: */
    2.12  		ok = spool_read_data(msg);
    2.13 -		DEBUG(4) debugf("  spool_read_data()=%d\n", ok);
    2.14 +		DEBUG(4) debugf("  spool_read_data() returned: %d\n", ok);
    2.15  	}
    2.16  	return msg;
    2.17  }