bridge: change console message interface
Use one set of macro's for all bridge messages. Note: can't use netdev_XXX macro's because bridge is purely virtual and has no device parent. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committato da
David S. Miller

parent
cfb478da70
commit
28a16c9796
@@ -353,8 +353,7 @@ static int fdb_insert(struct net_bridge *br, struct net_bridge_port *source,
|
||||
*/
|
||||
if (fdb->is_local)
|
||||
return 0;
|
||||
|
||||
printk(KERN_WARNING "%s adding interface with same address "
|
||||
br_warn(br, "adding interface %s with same address "
|
||||
"as a received packet\n",
|
||||
source->dev->name);
|
||||
fdb_delete(fdb);
|
||||
@@ -397,9 +396,9 @@ void br_fdb_update(struct net_bridge *br, struct net_bridge_port *source,
|
||||
/* attempt to update an entry for a local interface */
|
||||
if (unlikely(fdb->is_local)) {
|
||||
if (net_ratelimit())
|
||||
printk(KERN_WARNING "%s: received packet with "
|
||||
"own address as source address\n",
|
||||
source->dev->name);
|
||||
br_warn(br, "received packet on %s with "
|
||||
"own address as source address\n",
|
||||
source->dev->name);
|
||||
} else {
|
||||
/* fastpath: update of existing entry */
|
||||
fdb->dst = source;
|
||||
|
Fai riferimento in un nuovo problema
Block a user