Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 10:28:31 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194818 - head/sys/netatalk
Message-ID:  <200906241028.n5OASVRS009029@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Wed Jun 24 10:28:30 2009
New Revision: 194818
URL: http://svn.freebsd.org/changeset/base/194818

Log:
  Reduce debugging output for netatalk routing events.
  
  MFC after:	3 days

Modified:
  head/sys/netatalk/at_rmx.c

Modified: head/sys/netatalk/at_rmx.c
==============================================================================
--- head/sys/netatalk/at_rmx.c	Wed Jun 24 09:54:05 2009	(r194817)
+++ head/sys/netatalk/at_rmx.c	Wed Jun 24 10:28:30 2009	(r194818)
@@ -40,6 +40,7 @@
 
 int	at_inithead(void **head, int off);
 
+#if 0
 #define	HEXBUF_LEN	256
 
 static const char *
@@ -65,74 +66,35 @@ prsockaddr(void *v, char *hexbuf)
 	*bp = '\0';
 	return (hexbuf);
 }
+#endif
 
 static struct radix_node *
 at_addroute(void *v_arg, void *n_arg, struct radix_node_head *head,
 	    struct radix_node *treenodes)
 {
-	struct radix_node *rn;
-	char hexbuf[HEXBUF_LEN];
 
-	printf("at_addroute: v=%s\n", prsockaddr(v_arg, hexbuf));
-	printf("at_addroute: n=%s\n", prsockaddr(n_arg, hexbuf));
-	printf("at_addroute: head=%p treenodes=%p\n", (void *)head,
-	    (void *)treenodes);
-
-	rn = rn_addroute(v_arg, n_arg, head, treenodes);
-
-	printf("at_addroute: returns rn=%p\n", (void *)rn);
-
-	return (rn);
+	return (rn_addroute(v_arg, n_arg, head, treenodes));
 }
 
 static struct radix_node *
 at_matroute(void *v_arg, struct radix_node_head *head)
 {
-	struct radix_node *rn;
-	char hexbuf[HEXBUF_LEN];
-
-	printf("at_matroute: v=%s\n", prsockaddr(v_arg, hexbuf));
-	printf("at_matroute: head=%p\n", (void *)head);
-
-	rn = rn_match(v_arg, head);
-
-	printf("at_matroute: returnr rn=%p\n", (void *)rn);
 
-	return (rn);
+	return (rn_match(v_arg, head));
 }
 
 static struct radix_node *
 at_lookup(void *v_arg, void *m_arg, struct radix_node_head *head)
 {
-	struct radix_node *rn;
-	char hexbuf[HEXBUF_LEN];
 
-	printf("at_lookup: v=%s\n", prsockaddr(v_arg, hexbuf));
-	printf("at_lookup: n=%s\n", prsockaddr(m_arg, hexbuf));
-	printf("at_lookup: head=%p\n", (void *)head);
-
-	rn = rn_lookup(v_arg, m_arg, head);
-
-	printf("at_lookup: returns rn=%p\n", (void *)rn);
-
-	return (rn);
+	return (rn_lookup(v_arg, m_arg, head));
 }
 
 static struct radix_node *
 at_delroute(void *v_arg, void *netmask_arg, struct radix_node_head *head)
 {
-	struct radix_node *rn;
-	char hexbuf[HEXBUF_LEN];
-
-	printf("at_delroute: v=%s\n", prsockaddr(v_arg, hexbuf));
-	printf("at_delroute: n=%s\n", prsockaddr(netmask_arg, hexbuf));
-	printf("at_delroute: head=%p\n", (void *)head);
-
-	rn = rn_delete(v_arg, netmask_arg, head);
-
-	printf("at_delroute: returns rn=%p\n", (void *)rn);
 
-	return (rn);
+	return (rn_delete(v_arg, netmask_arg, head));
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906241028.n5OASVRS009029>