Turn on -DDEBUG in CFLAGS when CONFIG_PNP_DEBUG=y. This makes dev_dbg() do what you expect. Signed-off-by: Bjorn Helgaas Index: work10/drivers/pnp/isapnp/Makefile =================================================================== --- work10.orig/drivers/pnp/isapnp/Makefile 2008-04-25 11:12:17.000000000 -0600 +++ work10/drivers/pnp/isapnp/Makefile 2008-04-25 11:14:41.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-25 11:12:17.000000000 -0600 +++ work10/drivers/pnp/pnpacpi/Makefile 2008-04-25 11:14:41.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-25 11:12:17.000000000 -0600 +++ work10/drivers/pnp/pnpbios/Makefile 2008-04-25 11:14:41.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 -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/