From: Eliad Peller Date: Sun, 12 Dec 2010 10:15:35 +0000 (+0200) Subject: wl12xx: allow runtime changing of debug_level X-Git-Tag: v2.6.38-rc1~476^2~104^2~4^2~35^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17c1755c24d83f9fd0509b64c76cc43fc60cc642;p=pandora-kernel.git wl12xx: allow runtime changing of debug_level Currently, the debug level is set in compilation time (by the DEBUG_LEVEL const). This method has the advantage of compiling only the relevant messages, while optimizing out the unused ones. In order to allow runtime control over the debug_level, while optimizing out messages when debug messages are not needed, we combine some methods: 1. use dynamic_debug (pr_debug) rather then printk. 2. add debug_level module param in order to set debug level during insmod. 3. add debug_level sysfs file in order to allow dynamic control over the debug level. Since patches for pr_debug_hex_dump() implementation haven't been applied yet, we are still temporarly using print_hex_dump(). Signed-off-by: Eliad Peller Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed