From: Wengang Wang Date: Tue, 23 Dec 2014 01:24:36 +0000 (+0800) Subject: bonding: change error message to debug message in __bond_release_one() X-Git-Tag: v3.19-rc3~16^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a22a9e4141474b9f314947f159817050a1db58d8;p=~emulex%2Finfiniband.git bonding: change error message to debug message in __bond_release_one() In __bond_release_one(), when the interface is not a slave or not a slave of "this" master, it log error message. The message actually should be a debug message matching what bond_enslave() does. Signed-off-by: Wengang Wang Acked-by: Ding Tianhong Signed-off-by: Andy Gospodarek Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 184c434ae30..0dceba1a2ba 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -1648,7 +1648,7 @@ static int __bond_release_one(struct net_device *bond_dev, /* slave is not a slave or master is not master of this slave */ if (!(slave_dev->flags & IFF_SLAVE) || !netdev_has_upper_dev(slave_dev, bond_dev)) { - netdev_err(bond_dev, "cannot release %s\n", + netdev_dbg(bond_dev, "cannot release %s\n", slave_dev->name); return -EINVAL; }