summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_debugfs.c
diff options
context:
space:
mode:
authorJoe Perches2014-02-16 00:57:04 +0100
committerDavid S. Miller2014-02-17 06:29:23 +0100
commit91565ebbcc5aea69d4d6cb3832f52da03dbd44b6 (patch)
tree0cf8f7fa8df59e766ed7749d2a201cb08de8b635 /drivers/net/bonding/bond_debugfs.c
parentcaif: delete unnecessary field initialization (diff)
downloadkernel-qcow2-linux-91565ebbcc5aea69d4d6cb3832f52da03dbd44b6.tar.gz
kernel-qcow2-linux-91565ebbcc5aea69d4d6cb3832f52da03dbd44b6.tar.xz
kernel-qcow2-linux-91565ebbcc5aea69d4d6cb3832f52da03dbd44b6.zip
bonding: Convert pr_warning to pr_warn, neatening
Use more current logging style. Coalesce formats, realign arguments, drop unnecessary periods. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_debugfs.c')
-rw-r--r--drivers/net/bonding/bond_debugfs.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bond_debugfs.c
index 5fc4c2351478..2d3f7fa541ff 100644
--- a/drivers/net/bonding/bond_debugfs.c
+++ b/drivers/net/bonding/bond_debugfs.c
@@ -69,7 +69,7 @@ void bond_debug_register(struct bonding *bond)
debugfs_create_dir(bond->dev->name, bonding_debug_root);
if (!bond->debug_dir) {
- pr_warning("%s: Warning: failed to register to debugfs\n",
+ pr_warn("%s: Warning: failed to register to debugfs\n",
bond->dev->name);
return;
}
@@ -98,9 +98,8 @@ void bond_debug_reregister(struct bonding *bond)
if (d) {
bond->debug_dir = d;
} else {
- pr_warning("%s: Warning: failed to reregister, "
- "so just unregister old one\n",
- bond->dev->name);
+ pr_warn("%s: Warning: failed to reregister, so just unregister old one\n",
+ bond->dev->name);
bond_debug_unregister(bond);
}
}
@@ -110,8 +109,7 @@ void bond_create_debugfs(void)
bonding_debug_root = debugfs_create_dir("bonding", NULL);
if (!bonding_debug_root) {
- pr_warning("Warning: Cannot create bonding directory"
- " in debugfs\n");
+ pr_warn("Warning: Cannot create bonding directory in debugfs\n");
}
}