diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-01-25 00:45:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-25 00:45:15 +0100 |
commit | acd1130e8793fb150fb522da8ec51675839eb4b1 (patch) | |
tree | 0da6f9f8f7690b426ff069f95bb28bf9e692d534 /drivers/net/bonding | |
parent | net: change netdev->features to u32 (diff) | |
download | linux-acd1130e8793fb150fb522da8ec51675839eb4b1.tar.xz linux-acd1130e8793fb150fb522da8ec51675839eb4b1.zip |
net: reduce and unify printk level in netdev_fix_features()
Reduce printk() levels to KERN_INFO in netdev_fix_features() as this will
be used by ethtool and might spam dmesg unnecessarily.
This converts the function to use netdev_info() instead of plain printk().
As a side effect, bonding and bridge devices will now log dropped features
on every slave device change.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 7047b406b8ba..1df9f0ea9184 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -1400,8 +1400,8 @@ static int bond_compute_features(struct bonding *bond) done: features |= (bond_dev->features & BOND_VLAN_FEATURES); - bond_dev->features = netdev_fix_features(features, NULL); - bond_dev->vlan_features = netdev_fix_features(vlan_features, NULL); + bond_dev->features = netdev_fix_features(bond_dev, features); + bond_dev->vlan_features = netdev_fix_features(bond_dev, vlan_features); bond_dev->hard_header_len = max_hard_header_len; return 0; |