aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/bat_sysfs.c')
-rw-r--r--net/batman-adv/bat_sysfs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c
index b00101db5cc6..68ff759fc304 100644
--- a/net/batman-adv/bat_sysfs.c
+++ b/net/batman-adv/bat_sysfs.c
@@ -255,8 +255,8 @@ static ssize_t store_vis_mode(struct kobject *kobj, struct attribute *attr,
255 buff[count - 1] = '\0'; 255 buff[count - 1] = '\0';
256 256
257 bat_info(net_dev, 257 bat_info(net_dev,
258 "Invalid parameter for 'vis mode' setting received: " 258 "Invalid parameter for 'vis mode' setting received: %s\n",
259 "%s\n", buff); 259 buff);
260 return -EINVAL; 260 return -EINVAL;
261 } 261 }
262 262
@@ -330,8 +330,8 @@ static ssize_t store_gw_mode(struct kobject *kobj, struct attribute *attr,
330 330
331 if (gw_mode_tmp < 0) { 331 if (gw_mode_tmp < 0) {
332 bat_info(net_dev, 332 bat_info(net_dev,
333 "Invalid parameter for 'gw mode' setting received: " 333 "Invalid parameter for 'gw mode' setting received: %s\n",
334 "%s\n", buff); 334 buff);
335 return -EINVAL; 335 return -EINVAL;
336 } 336 }
337 337
@@ -502,8 +502,8 @@ static ssize_t store_mesh_iface(struct kobject *kobj, struct attribute *attr,
502 buff[count - 1] = '\0'; 502 buff[count - 1] = '\0';
503 503
504 if (strlen(buff) >= IFNAMSIZ) { 504 if (strlen(buff) >= IFNAMSIZ) {
505 pr_err("Invalid parameter for 'mesh_iface' setting received: " 505 pr_err("Invalid parameter for 'mesh_iface' setting received: interface name too long '%s'\n",
506 "interface name too long '%s'\n", buff); 506 buff);
507 hardif_free_ref(hard_iface); 507 hardif_free_ref(hard_iface);
508 return -EINVAL; 508 return -EINVAL;
509 } 509 }
@@ -677,8 +677,8 @@ out:
677 hardif_free_ref(primary_if); 677 hardif_free_ref(primary_if);
678 678
679 if (ret) 679 if (ret)
680 bat_dbg(DBG_BATMAN, bat_priv, "Impossible to send " 680 bat_dbg(DBG_BATMAN, bat_priv,
681 "uevent for (%s,%s,%s) event (err: %d)\n", 681 "Impossible to send uevent for (%s,%s,%s) event (err: %d)\n",
682 uev_type_str[type], uev_action_str[action], 682 uev_type_str[type], uev_action_str[action],
683 (action == UEV_DEL ? "NULL" : data), ret); 683 (action == UEV_DEL ? "NULL" : data), ret);
684 return ret; 684 return ret;