masqmail-0.2

diff src/connect.c @ 114:a80ebfa16cd5

better debugging output (thanks to Paolo)
author meillo@marmaro.de
date Wed, 30 Jun 2010 15:00:59 +0200
parents 26e34ae9a3e3
children
line diff
     1.1 --- a/src/connect.c	Wed Jun 30 13:23:49 2010 +0200
     1.2 +++ b/src/connect.c	Wed Jun 30 15:00:59 2010 +0200
     1.3 @@ -53,9 +53,9 @@
     1.4  
     1.5  		/* clumsy, but makes compiler happy: */
     1.6  		saddr.sin_addr = *(struct in_addr *) (&(addr->ip));
     1.7 -		DEBUG(5) debugf("trying ip %s port %d\n", inet_ntoa(saddr.sin_addr), port);
     1.8 +		DEBUG(5) debugf("  trying ip %s port %d\n", inet_ntoa(saddr.sin_addr), port);
     1.9  		if (connect(*psockfd, (struct sockaddr *) (&saddr), sizeof(saddr)) == 0) {
    1.10 -			DEBUG(5) debugf("connected to %s\n", inet_ntoa(saddr.sin_addr));
    1.11 +			DEBUG(5) debugf("  connected to %s\n", inet_ntoa(saddr.sin_addr));
    1.12  			return addr;
    1.13  		} else {
    1.14  			int saved_errno = errno;
    1.15 @@ -115,7 +115,7 @@
    1.16  
    1.17  	foreach(res_func_list, res_node) {
    1.18  		resolve_func res_func;
    1.19 -		DEBUG(6) debugf("connect_resolvelist 1a\n");
    1.20 +		DEBUG(6) debugf("  foreach() body\n");
    1.21  		res_func = (resolve_func) (res_node->data);
    1.22  
    1.23  		if (res_func == NULL) {