Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jun 2011 12:05:35 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222559 - head/sys/netinet/ipfw
Message-ID:  <201106011205.p51C5ZCm069334@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed Jun  1 12:05:35 2011
New Revision: 222559
URL: http://svn.freebsd.org/changeset/base/222559

Log:
  Hide useless warning under debug macro.
  
  PR:		kern/69963
  MFC after:	1 week

Modified:
  head/sys/netinet/ipfw/ip_fw_dynamic.c

Modified: head/sys/netinet/ipfw/ip_fw_dynamic.c
==============================================================================
--- head/sys/netinet/ipfw/ip_fw_dynamic.c	Wed Jun  1 10:23:03 2011	(r222558)
+++ head/sys/netinet/ipfw/ip_fw_dynamic.c	Wed Jun  1 12:05:35 2011	(r222559)
@@ -753,11 +753,12 @@ ipfw_install_state(struct ip_fw *rule, i
 	q = lookup_dyn_rule_locked(&args->f_id, NULL, NULL);
 
 	if (q != NULL) {	/* should never occur */
+		DEB(
 		if (last_log != time_uptime) {
 			last_log = time_uptime;
 			printf("ipfw: %s: entry already present, done\n",
 			    __func__);
-		}
+		})
 		IPFW_DYN_UNLOCK();
 		return (0);
 	}



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