diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-04-21 10:08:32 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-04-21 23:30:33 -0400 |
commit | fe08bc4b4fd1371fad111675a564e4d2ebbf39ea (patch) | |
tree | ab2a116569ab856f1a1041925170c6b9011c981a /drivers/misc/thinkpad_acpi.h | |
parent | 5fba344cfdbaa79e6320da26c3db34dfb219a845 (diff) |
ACPI: thinkpad-acpi: add subdriver debug statements
Add debug messages to the subdriver initialization and exit code.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc/thinkpad_acpi.h')
-rw-r--r-- | drivers/misc/thinkpad_acpi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.h b/drivers/misc/thinkpad_acpi.h index 06d4c3839afd..beb1447a7f3f 100644 --- a/drivers/misc/thinkpad_acpi.h +++ b/drivers/misc/thinkpad_acpi.h | |||
@@ -76,12 +76,16 @@ | |||
76 | 76 | ||
77 | /* Debugging */ | 77 | /* Debugging */ |
78 | #define TPACPI_DBG_ALL 0xffff | 78 | #define TPACPI_DBG_ALL 0xffff |
79 | #define TPACPI_DBG_ALL 0xffff | ||
80 | #define TPACPI_DBG_INIT 0x0001 | ||
81 | #define TPACPI_DBG_EXIT 0x0002 | ||
79 | #define dbg_printk(a_dbg_level, format, arg...) \ | 82 | #define dbg_printk(a_dbg_level, format, arg...) \ |
80 | do { if (dbg_level & a_dbg_level) \ | 83 | do { if (dbg_level & a_dbg_level) \ |
81 | printk(IBM_DEBUG "%s: " format, __func__ , ## arg); } while (0) | 84 | printk(IBM_DEBUG "%s: " format, __func__ , ## arg); } while (0) |
82 | #ifdef CONFIG_THINKPAD_ACPI_DEBUG | 85 | #ifdef CONFIG_THINKPAD_ACPI_DEBUG |
83 | #define vdbg_printk(a_dbg_level, format, arg...) \ | 86 | #define vdbg_printk(a_dbg_level, format, arg...) \ |
84 | dbg_printk(a_dbg_level, format, ## arg) | 87 | dbg_printk(a_dbg_level, format, ## arg) |
88 | static const char *str_supported(int is_supported); | ||
85 | #else | 89 | #else |
86 | #define vdbg_printk(a_dbg_level, format, arg...) | 90 | #define vdbg_printk(a_dbg_level, format, arg...) |
87 | #endif | 91 | #endif |