Skip to content

Commit

Permalink
PNP: turn on -DDEBUG when CONFIG_PNP_DEBUG is set
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Bjorn Helgaas authored and Len Brown committed Apr 29, 2008
1 parent a01e035 commit 1bd17e6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/pnp/isapnp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions drivers/pnp/pnpacpi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
#

obj-y := core.o rsparser.o

ifeq ($(CONFIG_PNP_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
4 changes: 4 additions & 0 deletions drivers/pnp/pnpbios/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1bd17e6

Please sign in to comment.