Bug 238658 - netpfil: ipfw: remove unnecessary pointer printing in ip_dummy_net.c
Summary: netpfil: ipfw: remove unnecessary pointer printing in ip_dummy_net.c
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ipfw mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2019-06-17 11:28 UTC by Fuqian
Modified: 2019-07-04 10:43 UTC (History)
0 users

See Also:


Attachments
The patch file (939 bytes, patch)
2019-06-17 11:28 UTC, Fuqian
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fuqian 2019-06-17 11:28:21 UTC
Created attachment 205176 [details]
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