mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: FabF <fabian.frederick@skynet.be>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.6.7-rc3-mm1] make maxdebug
Date: Thu, 10 Jun 2004 22:13:35 +0200	[thread overview]
Message-ID: <1086898414.3738.3.camel@localhost.localdomain> (raw)

[-- 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:

                 reply	other threads:[~2004-06-10 20:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1086898414.3738.3.camel@localhost.localdomain \
    --to=fabian.frederick@skynet.be \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®