summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/glue.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-12-18 06:31:30 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-03 13:10:21 +0100
commit23415eb5233eb3c1939c4cb7d6235af98a3a2955 (patch)
tree936454525eed8574951a49a49a3c59306157b39d /drivers/acpi/glue.c
parent5cc36c724eb60b5e5457807f3230e5bb5454e4d0 (diff)
downloadop-kernel-dev-23415eb5233eb3c1939c4cb7d6235af98a3a2955.zip
op-kernel-dev-23415eb5233eb3c1939c4cb7d6235af98a3a2955.tar.gz
ACPI / glue: Update DBG macro to include KERN_DEBUG
Currently these DBG statements are emitted at KERN_DEFAULT. Change the macro to emit at KERN_DEBUG. This can help avoid unexpected message interleaving. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/glue.c')
-rw-r--r--drivers/acpi/glue.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c
index 0155184..95af6f6 100644
--- a/drivers/acpi/glue.c
+++ b/drivers/acpi/glue.c
@@ -18,9 +18,14 @@
#define ACPI_GLUE_DEBUG 0
#if ACPI_GLUE_DEBUG
-#define DBG(x...) printk(PREFIX x)
+#define DBG(fmt, ...) \
+ printk(KERN_DEBUG PREFIX fmt, ##__VA_ARGS__)
#else
-#define DBG(x...) do { } while(0)
+#define DBG(fmt, ...) \
+do { \
+ if (0) \
+ printk(KERN_DEBUG PREFIX fmt, ##__VA_ARGS__); \
+} while (0)
#endif
static LIST_HEAD(bus_type_list);
static DECLARE_RWSEM(bus_type_sem);
OpenPOWER on IntegriCloud