diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-04 17:10:29 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-04 17:10:29 -0500 |
commit | f3fe8bd7b114d88c802616a98a0cf69299c37ed3 (patch) | |
tree | ae98aa0acb783c5f8e57bd29ca8ede44d569b444 /drivers/acpi/glue.c | |
parent | c49d874bafd0a63379294ebd3531c41f9fcebc7d (diff) | |
parent | 4f5f64cf0cc916220aaa055992e31195470cfe37 (diff) |
Merge branch 'acpi-assorted'
* acpi-assorted:
ACPI / scan: Do not use dummy HID for system bus ACPI nodes
ACPI / power: Remove useless message from device registering routine
ACPI / glue: Update DBG macro to include KERN_DEBUG
ACPI / PM: Do not apply ACPI_SUCCESS() to acpi_bus_get_device() result
ACPI / memhotplug: remove redundant logic of acpi memory hotadd
ACPI / APEI: Fix the returned value in erst_dbg_read
Diffstat (limited to 'drivers/acpi/glue.c')
-rw-r--r-- | drivers/acpi/glue.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c index 01551840d236..95af6f674a6c 100644 --- a/drivers/acpi/glue.c +++ b/drivers/acpi/glue.c | |||
@@ -18,9 +18,14 @@ | |||
18 | 18 | ||
19 | #define ACPI_GLUE_DEBUG 0 | 19 | #define ACPI_GLUE_DEBUG 0 |
20 | #if ACPI_GLUE_DEBUG | 20 | #if ACPI_GLUE_DEBUG |
21 | #define DBG(x...) printk(PREFIX x) | 21 | #define DBG(fmt, ...) \ |
22 | printk(KERN_DEBUG PREFIX fmt, ##__VA_ARGS__) | ||
22 | #else | 23 | #else |
23 | #define DBG(x...) do { } while(0) | 24 | #define DBG(fmt, ...) \ |
25 | do { \ | ||
26 | if (0) \ | ||
27 | printk(KERN_DEBUG PREFIX fmt, ##__VA_ARGS__); \ | ||
28 | } while (0) | ||
24 | #endif | 29 | #endif |
25 | static LIST_HEAD(bus_type_list); | 30 | static LIST_HEAD(bus_type_list); |
26 | static DECLARE_RWSEM(bus_type_sem); | 31 | static DECLARE_RWSEM(bus_type_sem); |