diff options
author | Veaceslav Falico <vfalico@gmail.com> | 2014-07-15 13:36:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-16 02:15:58 -0400 |
commit | 9ef1cf16cfc789eb631eb38d46d5dbfb36832546 (patch) | |
tree | 49ed7568f54062c208775137a5432827bd1e50b7 /drivers/net/bonding | |
parent | abaf98ef8078a48157027ec3168c4f4c8c13f48a (diff) |
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 <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_debugfs.c | 6 |
1 files changed, 2 insertions, 4 deletions
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) | |||
69 | debugfs_create_dir(bond->dev->name, bonding_debug_root); | 69 | debugfs_create_dir(bond->dev->name, bonding_debug_root); |
70 | 70 | ||
71 | if (!bond->debug_dir) { | 71 | if (!bond->debug_dir) { |
72 | pr_warn("%s: Warning: failed to register to debugfs\n", | 72 | netdev_warn(bond->dev, "failed to register to debugfs\n"); |
73 | bond->dev->name); | ||
74 | return; | 73 | return; |
75 | } | 74 | } |
76 | 75 | ||
@@ -98,8 +97,7 @@ void bond_debug_reregister(struct bonding *bond) | |||
98 | if (d) { | 97 | if (d) { |
99 | bond->debug_dir = d; | 98 | bond->debug_dir = d; |
100 | } else { | 99 | } else { |
101 | pr_warn("%s: Warning: failed to reregister, so just unregister old one\n", | 100 | netdev_warn(bond->dev, "failed to reregister, so just unregister old one\n"); |
102 | bond->dev->name); | ||
103 | bond_debug_unregister(bond); | 101 | bond_debug_unregister(bond); |
104 | } | 102 | } |
105 | } | 103 | } |