X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Fedge.c;h=f9d4d98d967d42699d32dc0b9d90b33ef0d34d04;hp=0a47f8c87bab15a59c55836af0c7ae6e5bd77afa;hb=0b9175e998c2180e5d73ef3d644a49d620c68cad;hpb=868104703003605711582c984b57f8933bf361ee diff --git a/src/edge.c b/src/edge.c index 0a47f8c..f9d4d98 100644 --- a/src/edge.c +++ b/src/edge.c @@ -17,13 +17,12 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: edge.c,v 1.1.2.18 2002/09/10 22:12:33 guus Exp $ + $Id: edge.c,v 1.1.2.19 2003/07/06 22:11:31 guus Exp $ */ #include "config.h" #include -#include #include #include @@ -36,6 +35,7 @@ #include "subnet.h" #include "edge.h" #include "node.h" +#include "logger.h" #include "xalloc.h" #include "system.h" @@ -154,18 +154,18 @@ void dump_edges(void) cp(); - syslog(LOG_DEBUG, _("Edges:")); + logger(DEBUG_ALWAYS, LOG_DEBUG, _("Edges:")); for(node = node_tree->head; node; node = node->next) { n = (node_t *) node->data; for(node2 = n->edge_tree->head; node2; node2 = node2->next) { e = (edge_t *) node2->data; address = sockaddr2hostname(&e->address); - syslog(LOG_DEBUG, _(" %s to %s at %s options %lx weight %d"), + logger(DEBUG_ALWAYS, LOG_DEBUG, _(" %s to %s at %s options %lx weight %d"), e->from->name, e->to->name, address, e->options, e->weight); free(address); } } - syslog(LOG_DEBUG, _("End of edges.")); + logger(DEBUG_ALWAYS, LOG_DEBUG, _("End of edges.")); }