Skip to content

Commit

Permalink
bonding: convert bond_debugfs.c to use netdev_printk instead of pr_
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vfalico authored and davem330 committed Jul 16, 2014
1 parent abaf98e commit 9ef1cf1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/bonding/bond_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9ef1cf1

Please sign in to comment.