aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2012-05-09 03:50:45 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-18 12:01:06 -0400
commitef3a409391f55ad0bddbf017d4d4987b783a3059 (patch)
treec8ae000280acdf7ad30e6c76356c56d38e0adbf4 /net/batman-adv
parentbe9aa4c1e0d7124cf976831db098f1e852fdbd14 (diff)
batman-adv: use DBG_ALL in log_level sysfs definition
Each time a new log level is added the developer must change either the DBG_ALL enum definition and the hard coded value in the bat_sysfs.c for the log_level attribute max value. This is extremely error prone. With this patch the code directly uses DBG_ALL in the sysfs definition Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/bat_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c
index 62f4f6cb888a..dc1edbee63df 100644
--- a/net/batman-adv/bat_sysfs.c
+++ b/net/batman-adv/bat_sysfs.c
@@ -445,7 +445,7 @@ BAT_ATTR_SIF_UINT(gw_sel_class, S_IRUGO | S_IWUSR, 1, TQ_MAX_VALUE,
445static BAT_ATTR(gw_bandwidth, S_IRUGO | S_IWUSR, show_gw_bwidth, 445static BAT_ATTR(gw_bandwidth, S_IRUGO | S_IWUSR, show_gw_bwidth,
446 store_gw_bwidth); 446 store_gw_bwidth);
447#ifdef CONFIG_BATMAN_ADV_DEBUG 447#ifdef CONFIG_BATMAN_ADV_DEBUG
448BAT_ATTR_SIF_UINT(log_level, S_IRUGO | S_IWUSR, 0, 15, NULL); 448BAT_ATTR_SIF_UINT(log_level, S_IRUGO | S_IWUSR, 0, DBG_ALL, NULL);
449#endif 449#endif
450 450
451static struct bat_attribute *mesh_attrs[] = { 451static struct bat_attribute *mesh_attrs[] = {