summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2007-03-12 12:42:14 +0000
committeryar <yar@FreeBSD.org>2007-03-12 12:42:14 +0000
commit9e5ccd324fada4bc6ec105d5a5454280b0992040 (patch)
tree5a146cabd352efe2cec5aa9c285bd30b01089762 /sys/net/if_vlan.c
parente732c73d0a45392b7df2dc736148f2d03cc1a2d7 (diff)
downloadFreeBSD-src-9e5ccd324fada4bc6ec105d5a5454280b0992040.zip
FreeBSD-src-9e5ccd324fada4bc6ec105d5a5454280b0992040.tar.gz
Emit load and unload messages under bootverbose.
This can help to spot bugs (which it did for me,) and let people know which mode the vlan module is actually using if they suspect it isn't picking its options from the main kernel config file.
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index ee7576d..e1076b3 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -537,6 +537,15 @@ vlan_modevent(module_t mod, int type, void *data)
vlan_link_state_p = vlan_link_state;
vlan_trunk_cap_p = vlan_trunk_capabilities;
if_clone_attach(&vlan_cloner);
+ if (bootverbose)
+ printf("vlan: initialized, using "
+#ifdef VLAN_ARRAY
+ "full-size arrays"
+#else
+ "hash tables with chaining"
+#endif
+
+ "\n");
break;
case MOD_UNLOAD:
if_clone_detach(&vlan_cloner);
@@ -545,6 +554,8 @@ vlan_modevent(module_t mod, int type, void *data)
vlan_link_state_p = NULL;
vlan_trunk_cap_p = NULL;
VLAN_LOCK_DESTROY();
+ if (bootverbose)
+ printf("vlan: unloaded\n");
break;
default:
return (EOPNOTSUPP);
OpenPOWER on IntegriCloud