* [PATCH 2.6.7-rc3-mm1] make maxdebug
@ 2004-06-10 20:13 FabF
0 siblings, 0 replies; only message in thread
From: FabF @ 2004-06-10 20:13 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 166 bytes --]
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
[-- Attachment #2: maxdebug1.diff --]
[-- Type: text/x-patch, Size: 968 bytes --]
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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-06-10 20:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-10 20:13 [PATCH 2.6.7-rc3-mm1] make maxdebug FabF
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®