Author: thj
Date: Mon Jul 13 13:35:36 2020
New Revision: 363141
URL: https://svnweb.freebsd.org/changeset/base/363141

Log:
  Don't print VNET pointer when initializing dummynet
  
  When dummynet initializes it prints a debug message with the current VNET
  pointer unnecessarily revealing kernel memory layout. This appears to be left
  over from when the first pieces of vimage support were added.
  
  PR:           238658
  Submitted by: huangfq.dax...@gmail.com
  Reviewed by:  markj, bz, gnn, kp, melifaro
  Approved by:  jtl (co-mentor), bz (co-mentor)
  Event:                July 2020 Bugathon
  MFC after:    3 days
  Differential Revision:        https://reviews.freebsd.org/D25619

Modified:
  head/sys/netpfil/ipfw/ip_dummynet.c

Modified: head/sys/netpfil/ipfw/ip_dummynet.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_dummynet.c Mon Jul 13 02:24:31 2020        
(r363140)
+++ head/sys/netpfil/ipfw/ip_dummynet.c Mon Jul 13 13:35:36 2020        
(r363141)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to