Mercurial > hg > freeDiameter
diff libfdcore/config.c @ 1107:96f2051215c8
Replaced calls to TRACE_sSA and sSA_DUMP_NODE* macros
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sun, 12 May 2013 16:39:07 +0200 |
parents | 44f3e48dfe27 |
children | eb4ce68b6e5c |
line wrap: on
line diff
--- a/libfdcore/config.c Fri May 10 13:26:03 2013 +0200 +++ b/libfdcore/config.c Sun May 12 16:39:07 2013 +0200 @@ -346,13 +346,11 @@ struct fd_endpoint * ep = (struct fd_endpoint *)li; if ( (fd_g_config->cnf_flags.no_ip4 && (ep->sa.sa_family == AF_INET)) ||(fd_g_config->cnf_flags.no_ip6 && (ep->sa.sa_family == AF_INET6)) ) { + char sa_buf[sSA_DUMP_STRLEN];; li = li->prev; fd_list_unlink(&ep->chain); - if (TRACE_BOOL(INFO)) { - char buf[1024]; - sSA_DUMP_NODE( buf, sizeof(buf), &ep->sa, NI_NUMERICHOST ); - fd_log_debug("Info: Removing local address conflicting with the flags no_IP / no_IP6 : %s", buf); - } + fd_sa_sdump_numeric(sa_buf, &ep->sa); + LOG_N("Info: Removing local address conflicting with the flags no_IP / no_IP6 : %s", sa_buf); free(ep); } }