lkml.org 
[lkml]   [2004]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2.6.7-rc3-mm1] make maxdebug
From
Date
Andrew,

Here's a patch to have maximum debug reporting.If you find the idea
interesting, I could work on full "debug off" feature and improve it....

Regards,
FabF
diff -Naur orig/Makefile edited/Makefile
--- orig/Makefile 2004-06-10 17:38:35.000000000 +0200
+++ edited/Makefile 2004-06-10 21:25:39.000000000 +0200
@@ -1167,4 +1167,28 @@

endif # skip-makefile

+# Maximum debug selection.
+# All modules having #undef DEBUG_XXX will be #define DEBUG_XXX
+# .config is synced as well.
+# WARNING : Irreversible process
+# (06/2004 - FabF)
+maxdebug :
+ @path=""; \
+ ls -R | while read line; do \
+ entry=`echo $$line | awk '/:$$/'`; \
+ if [ ! -z $$entry ]; then \
+ path=`echo $$entry | sed s/://g`; \
+ else \
+ if [ ! -z `echo $$line | awk '/\.c$$/'` ] || [ ! -z `echo $$line | awk '/\.h$$/'` ]; then \
+ if [ ! -z "$$line" ]; then \
+ sed /DEBUG/s/undef/define/g $$path/$$line > $$path/$$line"tmp"; \
+ mv $$path/$$line"tmp" $$path/$$line; \
+ echo $$line ; \
+ fi \
+ fi \
+ fi \
+ done; \
+ sed /DEBUG/s/'# '//g .config > .config.tmp; \
+ sed /DEBUG/s/'is not set'/'=y'/g .config.tmp > .config
+
FORCE:
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.083 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site