[Bug 238658] netpfil: ipfw: remove unnecessary pointer printing in ip_dummy_net.c

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 17 11:28:26 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238658

            Bug ID: 238658
           Summary: netpfil: ipfw: remove unnecessary pointer printing in
                    ip_dummy_net.c
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: huangfq.daxian at gmail.com

Created attachment 205176
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=205176&action=edit
The patch file

Remove the unnecessary printf in ip_dn_init to avoid printing out
the address of kernel pointer.
 sys/netpfil/ipfw/ip_dummynet.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/netpfil/ipfw/ip_dummynet.c b/sys/netpfil/ipfw/ip_dummynet.c
index 3fe5f7f2f82..ab2c0cdfcd0 100644
--- a/sys/netpfil/ipfw/ip_dummynet.c
+++ b/sys/netpfil/ipfw/ip_dummynet.c
@@ -2511,7 +2511,6 @@ ip_dn_init(void)
 {
        if (dn_cfg.init_done)
                return;
-       printf("DUMMYNET %p with IPv6 initialized (100409)\n", curvnet);
        dn_cfg.init_done = 1;
        /* Set defaults here. MSVC does not accept initializers,
         * and this is also useful for vimages

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list