Commit 9ef1cf16 authored by Veaceslav Falico's avatar Veaceslav Falico Committed by David S. Miller

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: default avatarVeaceslav Falico <vfalico@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent abaf98ef
...@@ -69,8 +69,7 @@ void bond_debug_register(struct bonding *bond) ...@@ -69,8 +69,7 @@ void bond_debug_register(struct bonding *bond)
debugfs_create_dir(bond->dev->name, bonding_debug_root); debugfs_create_dir(bond->dev->name, bonding_debug_root);
if (!bond->debug_dir) { if (!bond->debug_dir) {
pr_warn("%s: Warning: failed to register to debugfs\n", netdev_warn(bond->dev, "failed to register to debugfs\n");
bond->dev->name);
return; return;
} }
...@@ -98,8 +97,7 @@ void bond_debug_reregister(struct bonding *bond) ...@@ -98,8 +97,7 @@ void bond_debug_reregister(struct bonding *bond)
if (d) { if (d) {
bond->debug_dir = d; bond->debug_dir = d;
} else { } else {
pr_warn("%s: Warning: failed to reregister, so just unregister old one\n", netdev_warn(bond->dev, "failed to reregister, so just unregister old one\n");
bond->dev->name);
bond_debug_unregister(bond); bond_debug_unregister(bond);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment