From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966594AbYD1Whp (ORCPT ); Mon, 28 Apr 2008 18:37:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964909AbYD1WgV (ORCPT ); Mon, 28 Apr 2008 18:36:21 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:9194 "EHLO g4t0017.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934495AbYD1WgT (ORCPT ); Mon, 28 Apr 2008 18:36:19 -0400 Message-Id: <20080428223616.616114896@ldl.fc.hp.com> References: <20080428223347.233593713@ldl.fc.hp.com> User-Agent: quilt/0.46-1 Date: Mon, 28 Apr 2008 16:33:48 -0600 From: Bjorn Helgaas To: Len Brown Cc: linux-acpi@vger.kernel.org, Rene Herman Cc: linux-kernel@vger.kernel.org Cc: Adam Belay Cc: Adam M Belay Cc: Li Shaohua Cc: Matthieu Castet Cc: Thomas Renninger Cc: Rene Herman Cc: Jaroslav Kysela Cc: Andrew Morton Subject: [patch 01/55] PNP: turn on -DDEBUG when CONFIG_PNP_DEBUG is set Content-Disposition: inline; filename=pnp-turn-on-debug-in-makefiles Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Turn on -DDEBUG in CFLAGS when CONFIG_PNP_DEBUG=y. This makes dev_dbg() do what you expect. Signed-off-by: Bjorn Helgaas Acked-by: Rene Herman 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 --