debugnet: remove spurious message on boot
In non-INVARIANTS kernels, hide the warning message printed by debugnet when an interface MTU is configured or link state changes, and debugnet cannot infer the number of mbuf clusters to reserve. The warning isn't really actionable and mostly serves to confuse users. Reviewed by: vangyzen, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34393
This commit is contained in:
parent
a9e7a44c24
commit
346b8b25d9
@ -855,6 +855,9 @@ debugnet_any_ifnet_update(struct ifnet *ifp)
|
||||
* dn_init method is available.
|
||||
*/
|
||||
if (nmbuf == 0 || ncl == 0 || clsize == 0) {
|
||||
#ifndef INVARIANTS
|
||||
if (bootverbose)
|
||||
#endif
|
||||
printf("%s: Bad dn_init result from %s (ifp %p), ignoring.\n",
|
||||
__func__, if_name(ifp), ifp);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user