[patch 01/55] PNP: turn on -DDEBUG when CONFIG_PNP_DEBUG is set

Bjorn Helgaas
2008-04-28T22:36:19Z

[-- Attachment #1: pnp-turn-on-debug-in-makefiles --]
[-- Type: text/plain, Size: 1466 bytes --]

Turn on -DDEBUG in CFLAGS when CONFIG_PNP_DEBUG=y. This makes
dev_dbg() do what you expect.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Rene Herman <rene.herman@gmail.com>

Index: work10/drivers/pnp/isapnp/Makefile
===================================================================
--- work10.orig/drivers/pnp/isapnp/Makefile 2008-04-28 16:00:27.000000000 -0600
+++ work10/drivers/pnp/isapnp/Makefile 2008-04-28 16:09:03.000000000 -0600
@@ -5,3 +5,7 @@
isapnp-proc-$(CONFIG_PROC_FS) = proc.o

obj-y := core.o compat.o $(isapnp-proc-y)
+
+ifeq ($(CONFIG_PNP_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+endif
Index: work10/drivers/pnp/pnpacpi/Makefile
===================================================================
--- work10.orig/drivers/pnp/pnpacpi/Makefile 2008-04-28 16:00:27.000000000 -0600
+++ work10/drivers/pnp/pnpacpi/Makefile 2008-04-28 16:09:03.000000000 -0600
@@ -3,3 +3,7 @@
#

obj-y := core.o rsparser.o
+
+ifeq ($(CONFIG_PNP_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+endif
Index: work10/drivers/pnp/pnpbios/Makefile
===================================================================
--- work10.orig/drivers/pnp/pnpbios/Makefile 2008-04-28 16:00:27.000000000 -0600
+++ work10/drivers/pnp/pnpbios/Makefile 2008-04-28 16:09:03.000000000 -0600
@@ -5,3 +5,7 @@
pnpbios-proc-$(CONFIG_PNPBIOS_PROC_FS) = proc.o

obj-y := core.o bioscalls.o rsparser.o $(pnpbios-proc-y)
+
+ifeq ($(CONFIG_PNP_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+endif

--