Page MenuHomeFreeBSD

debugnet: remove spurious message on boot
ClosedPublic

Authored by franco_opnsense.org on Feb 28 2022, 11:33 AM.
Tags
None
Referenced Files
F103018034: D34393.diff
Tue, Nov 19, 9:28 PM
F102977085: D34393.diff
Tue, Nov 19, 9:58 AM
Unknown Object (File)
Tue, Nov 5, 1:30 PM
Unknown Object (File)
Mon, Nov 4, 4:50 AM
Unknown Object (File)
Sat, Nov 2, 5:43 PM
Unknown Object (File)
Wed, Oct 23, 8:04 AM
Unknown Object (File)
Oct 17 2024, 8:29 PM
Unknown Object (File)
Oct 16 2024, 8:37 PM

Details

Summary

In 2019 it was said to be added to fix the drivers but that has not
happened so it does not make sense to present a non-error to users.

No response on recent mailing list question:

https://lists.freebsd.org/archives/freebsd-net/2022-February/001254.html

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I think it's important to leave this sort of message in for kernel developers to see, but agreed it has little user-facing value. What about something like this:

#ifndef INVARIANTS
if (bootverbose)
#endif
	printf("%s: Bad dn_init result from %s (ifp %p), ignoring.\n",
	    __func__, if_name(ifp), ifp);

i.e., always print it in an INVARIANTS kernel, otherwise hide it under bootverbose

Either way seems fine to me. I’d ask vangyzen or bdrewery for input.

This revision is now accepted and ready to land.Feb 28 2022, 8:14 PM

Since I don't have a commit bit... anyone willing to commit this? Thanks in advance.

This revision was automatically updated to reflect the committed changes.