Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2009 17:48:49 +0000 (UTC)
From:      Bruce M Simpson <bms@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189635 - head/sys/netinet
Message-ID:  <200903101748.n2AHmnpN069143@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bms
Date: Tue Mar 10 17:48:49 2009
New Revision: 189635
URL: http://svn.freebsd.org/changeset/base/189635

Log:
  Don't print inm_print() chatter when KTR_IGMPV3 is not enabled
  in the KTR_COMPILE mask.
  
  Found by:	gnn

Modified:
  head/sys/netinet/in_mcast.c

Modified: head/sys/netinet/in_mcast.c
==============================================================================
--- head/sys/netinet/in_mcast.c	Tue Mar 10 17:28:23 2009	(r189634)
+++ head/sys/netinet/in_mcast.c	Tue Mar 10 17:48:49 2009	(r189635)
@@ -2851,6 +2851,9 @@ inm_print(const struct in_multi *inm)
 {
 	int t;
 
+	if ((KTR_COMPILE & KTR_IGMPV3) == 0)
+		return;
+
 	printf("%s: --- begin inm %p ---\n", __func__, inm);
 	printf("addr %s ifp %p(%s) ifma %p\n",
 	    inet_ntoa(inm->inm_addr),



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