diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-03 16:19:22 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-07-01 16:47:19 -0400 |
commit | 39c75a51eda38ca5ce8b75f0a62a621eb3820a54 (patch) | |
tree | 22eb93745b165356b042c840e7581d844d9c2550 /net/batman-adv/bat_sysfs.c | |
parent | acd34afa89772f6379b642bb979d0a112328c769 (diff) |
batman-adv: Prefix main enum with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bat_sysfs.c')
-rw-r--r-- | net/batman-adv/bat_sysfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c index e27bfe3dd278..c4794c6edf2f 100644 --- a/net/batman-adv/bat_sysfs.c +++ b/net/batman-adv/bat_sysfs.c | |||
@@ -485,7 +485,7 @@ BATADV_ATTR_SIF_UINT(gw_sel_class, S_IRUGO | S_IWUSR, 1, BATADV_TQ_MAX_VALUE, | |||
485 | static BATADV_ATTR(gw_bandwidth, S_IRUGO | S_IWUSR, batadv_show_gw_bwidth, | 485 | static BATADV_ATTR(gw_bandwidth, S_IRUGO | S_IWUSR, batadv_show_gw_bwidth, |
486 | batadv_store_gw_bwidth); | 486 | batadv_store_gw_bwidth); |
487 | #ifdef CONFIG_BATMAN_ADV_DEBUG | 487 | #ifdef CONFIG_BATMAN_ADV_DEBUG |
488 | BATADV_ATTR_SIF_UINT(log_level, S_IRUGO | S_IWUSR, 0, DBG_ALL, NULL); | 488 | BATADV_ATTR_SIF_UINT(log_level, S_IRUGO | S_IWUSR, 0, BATADV_DBG_ALL, NULL); |
489 | #endif | 489 | #endif |
490 | 490 | ||
491 | static struct bat_attribute *batadv_mesh_attrs[] = { | 491 | static struct bat_attribute *batadv_mesh_attrs[] = { |
@@ -723,8 +723,8 @@ void batadv_sysfs_del_hardif(struct kobject **hardif_obj) | |||
723 | *hardif_obj = NULL; | 723 | *hardif_obj = NULL; |
724 | } | 724 | } |
725 | 725 | ||
726 | int batadv_throw_uevent(struct bat_priv *bat_priv, enum uev_type type, | 726 | int batadv_throw_uevent(struct bat_priv *bat_priv, enum batadv_uev_type type, |
727 | enum uev_action action, const char *data) | 727 | enum batadv_uev_action action, const char *data) |
728 | { | 728 | { |
729 | int ret = -ENOMEM; | 729 | int ret = -ENOMEM; |
730 | struct hard_iface *primary_if = NULL; | 730 | struct hard_iface *primary_if = NULL; |
@@ -756,7 +756,7 @@ int batadv_throw_uevent(struct bat_priv *bat_priv, enum uev_type type, | |||
756 | batadv_uev_action_str[action]); | 756 | batadv_uev_action_str[action]); |
757 | 757 | ||
758 | /* If the event is DEL, ignore the data field */ | 758 | /* If the event is DEL, ignore the data field */ |
759 | if (action != UEV_DEL) { | 759 | if (action != BATADV_UEV_DEL) { |
760 | uevent_env[2] = kmalloc(strlen(BATADV_UEV_DATA_VAR) + | 760 | uevent_env[2] = kmalloc(strlen(BATADV_UEV_DATA_VAR) + |
761 | strlen(data) + 1, GFP_ATOMIC); | 761 | strlen(data) + 1, GFP_ATOMIC); |
762 | if (!uevent_env[2]) | 762 | if (!uevent_env[2]) |
@@ -775,10 +775,10 @@ out: | |||
775 | batadv_hardif_free_ref(primary_if); | 775 | batadv_hardif_free_ref(primary_if); |
776 | 776 | ||
777 | if (ret) | 777 | if (ret) |
778 | batadv_dbg(DBG_BATMAN, bat_priv, | 778 | batadv_dbg(BATADV_DBG_BATMAN, bat_priv, |
779 | "Impossible to send uevent for (%s,%s,%s) event (err: %d)\n", | 779 | "Impossible to send uevent for (%s,%s,%s) event (err: %d)\n", |
780 | batadv_uev_type_str[type], | 780 | batadv_uev_type_str[type], |
781 | batadv_uev_action_str[action], | 781 | batadv_uev_action_str[action], |
782 | (action == UEV_DEL ? "NULL" : data), ret); | 782 | (action == BATADV_UEV_DEL ? "NULL" : data), ret); |
783 | return ret; | 783 | return ret; |
784 | } | 784 | } |