]> git.karo-electronics.de Git - linux-beck.git/commit
batman-adv: use DBG_ALL in log_level sysfs definition
authorAntonio Quartulli <ordex@autistici.org>
Wed, 9 May 2012 07:50:45 +0000 (09:50 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 18 Jun 2012 16:01:06 +0000 (18:01 +0200)
commitef3a409391f55ad0bddbf017d4d4987b783a3059
treec8ae000280acdf7ad30e6c76356c56d38e0adbf4
parentbe9aa4c1e0d7124cf976831db098f1e852fdbd14
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>
net/batman-adv/bat_sysfs.c