From: Veaceslav Falico Date: Tue, 15 Jul 2014 17:36:04 +0000 (+0200) Subject: bonding: convert bond_debugfs.c to use netdev_printk instead of pr_ X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ef1cf16cfc789eb631eb38d46d5dbfb36832546;p=linux-beck.git bonding: convert bond_debugfs.c to use netdev_printk instead of pr_ One occurance left intact as it's unrelated to net_device. CC: Jay Vosburgh CC: Andy Gospodarek Signed-off-by: Veaceslav Falico Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bond_debugfs.c index 658e761c4568..280971b227ea 100644 --- a/drivers/net/bonding/bond_debugfs.c +++ b/drivers/net/bonding/bond_debugfs.c @@ -69,8 +69,7 @@ void bond_debug_register(struct bonding *bond) debugfs_create_dir(bond->dev->name, bonding_debug_root); if (!bond->debug_dir) { - pr_warn("%s: Warning: failed to register to debugfs\n", - bond->dev->name); + netdev_warn(bond->dev, "failed to register to debugfs\n"); return; } @@ -98,8 +97,7 @@ void bond_debug_reregister(struct bonding *bond) if (d) { bond->debug_dir = d; } else { - pr_warn("%s: Warning: failed to reregister, so just unregister old one\n", - bond->dev->name); + netdev_warn(bond->dev, "failed to reregister, so just unregister old one\n"); bond_debug_unregister(bond); } }