From e35a05d3e7e21ed87085b55f3e10d5cf1cb2071d Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Wed, 1 Jun 2011 12:05:35 +0000 Subject: [PATCH] Hide useless warning under debug macro. PR: kern/69963 MFC after: 1 week --- sys/netinet/ipfw/ip_fw_dynamic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ipfw/ip_fw_dynamic.c b/sys/netinet/ipfw/ip_fw_dynamic.c index 7f0feb4212fd..0bc4cc112ce2 100644 --- a/sys/netinet/ipfw/ip_fw_dynamic.c +++ b/sys/netinet/ipfw/ip_fw_dynamic.c @@ -753,11 +753,12 @@ ipfw_install_state(struct ip_fw *rule, ipfw_insn_limit *cmd, 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); }