Remove a spurious blank line at the start of vlan_growhash().

Add a diagnostic message to the function about resizing vlan
hash table.
This commit is contained in:
Yaroslav Tykhiy 2007-03-15 14:10:51 +00:00
parent b46a157df0
commit f84b2d6998

View File

@ -310,7 +310,6 @@ vlan_remhash(struct ifvlantrunk *trunk, struct ifvlan *ifv)
static void
vlan_growhash(struct ifvlantrunk *trunk, int howmuch)
{
struct ifvlan *ifv;
struct ifvlanhead *hash2;
int hwidth2, i, j, n, n2;
@ -350,6 +349,10 @@ vlan_growhash(struct ifvlantrunk *trunk, int howmuch)
trunk->hash = hash2;
trunk->hwidth = hwidth2;
trunk->hmask = n2 - 1;
if (bootverbose)
if_printf(trunk->parent,
"VLAN hash table resized from %d to %d buckets\n", n, n2);
}
static __inline struct ifvlan *