comparison src/spool.c @ 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 d04894d0fc64
comparison
equal deleted inserted replaced
235:92063f90f9be 236:5a0e8ed56c2a
207 msg->uid = g_strdup(uid); 207 msg->uid = g_strdup(uid);
208 208
209 DEBUG(4) debugf("msg_spool_read():\n"); 209 DEBUG(4) debugf("msg_spool_read():\n");
210 /* header spool: */ 210 /* header spool: */
211 ok = spool_read_header(msg); 211 ok = spool_read_header(msg);
212 DEBUG(4) debugf(" spool_read_header()=%d, do_readdata=%d\n", ok, do_readdata); 212 DEBUG(4) debugf(" spool_read_header() returned: %d (do_readdata had been: %d)\n",
213 ok, do_readdata);
213 if (ok && do_readdata) { 214 if (ok && do_readdata) {
214 /* data spool: */ 215 /* data spool: */
215 ok = spool_read_data(msg); 216 ok = spool_read_data(msg);
216 DEBUG(4) debugf(" spool_read_data()=%d\n", ok); 217 DEBUG(4) debugf(" spool_read_data() returned: %d\n", ok);
217 } 218 }
218 return msg; 219 return msg;
219 } 220 }
220 221
221 /* write header. uid and gid should already be set to the 222 /* write header. uid and gid should already be set to the