mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
bonding: Neaten pr_<level>
Add missing terminating newlines. Convert uses of pr_info to pr_cont in bond_check_params. Standardize upper/lower case styles. Typo fixes, remove unnecessary parentheses and periods. Alignment neatening. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
91565ebbcc
commit
90194264ce
@@ -117,9 +117,9 @@ static ssize_t bonding_store_bonds(struct class *cls,
|
||||
rv = bond_create(bn->net, ifname);
|
||||
if (rv) {
|
||||
if (rv == -EEXIST)
|
||||
pr_info("%s already exists.\n", ifname);
|
||||
pr_info("%s already exists\n", ifname);
|
||||
else
|
||||
pr_info("%s creation failed.\n", ifname);
|
||||
pr_info("%s creation failed\n", ifname);
|
||||
res = rv;
|
||||
}
|
||||
} else if (command[0] == '-') {
|
||||
@@ -144,7 +144,7 @@ static ssize_t bonding_store_bonds(struct class *cls,
|
||||
return res;
|
||||
|
||||
err_no_cmd:
|
||||
pr_err("no command found in bonding_masters. Use +ifname or -ifname.\n");
|
||||
pr_err("no command found in bonding_masters - use +ifname or -ifname\n");
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
@@ -1135,7 +1135,7 @@ int bond_create_sysfs(struct bond_net *bn)
|
||||
/* Is someone being kinky and naming a device bonding_master? */
|
||||
if (__dev_get_by_name(bn->net,
|
||||
class_attr_bonding_masters.attr.name))
|
||||
pr_err("network device named %s already exists in sysfs",
|
||||
pr_err("network device named %s already exists in sysfs\n",
|
||||
class_attr_bonding_masters.attr.name);
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user