From: Joe Perches Date: Tue, 18 Dec 2012 06:31:30 +0000 (+0000) Subject: ACPI / glue: Update DBG macro to include KERN_DEBUG X-Git-Tag: MMI-PSA29.97-13-9~15217^2~4^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=23415eb5233eb3c1939c4cb7d6235af98a3a2955;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Rafael J. Wysocki --- 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 @@ #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);