lkml.org 
[lkml]   [2014]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] plist: include -DDEBUG if CONFIG_DEBUG_PI_LIST
Date
lib/plist.c uses pr_debug() in its test function, which is compiled
and run only when CONFIG_DEBUG_PI_LIST in set; however pr_debug()
is compiled out unless -DDEBUG is set for the file.

Update lib/Makefile to add -DDEBUG to CFLAGS_plist.o if
CONFIG_DEBUG_PI_LIST is set, so that the pr_debug() output from
plist_test() is shown.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
---
lib/Makefile | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/lib/Makefile b/lib/Makefile
index 0cd7b68..fd1f4c8 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -39,6 +39,10 @@ CFLAGS_kobject.o += -DDEBUG
CFLAGS_kobject_uevent.o += -DDEBUG
endif

+ifeq ($(CONFIG_DEBUG_PI_LIST),y)
+CFLAGS_plist.o += -DDEBUG
+endif
+
obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
obj-$(CONFIG_GENERIC_PCI_IOMAP) += pci_iomap.o
obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o
--
1.8.3.1


\
 
 \ /
  Last update: 2014-05-02 23:01    [W:0.079 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site