linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Neal B <nealb001@gmail.com>
To: Artem.Bityutskiy@nokia.com
Cc: maximlevitsky@gmail.com, cascardo@holoscopio.com,
	linux-kernel@vger.kernel.org, Julia Lawall <julia@diku.dk>,
	linux-mtd@lists.infradead.org, jkosina@suse.cz,
	mohanlaljangir@gmail.com, rmk+kernel@arm.linux.org.uk,
	dwmw2@infradead.org
Subject: [PATCH 6/6] Mtd: Removed legacy dbg function.
Date: Sun, 11 Jul 2010 21:54:31 -0500	[thread overview]
Message-ID: <4C3A83E7.3040807@gmail.com> (raw)

This is dependent on [patch 4/6 and patch 5/6]
 From 4840c4e191b3a507784298e8e3a5131b10901241 Mon Sep 17 00:00:00 2001
From: Neal Buckendahl <nealb001@gmail.com>
Date: Sun, 11 Jul 2010 18:42:39 -0500
Subject: [PATCH 6/6] Mtd: Removed legacy dbg function which is no longer 
needed.
      Signed-off-by: Neal Buckendahl <nealb001@gmail.com>

---
  drivers/mtd/cmdlinepart.c |   20 --------------------
  1 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c
index 2423ade..d20258c 100644
--- a/drivers/mtd/cmdlinepart.c
+++ b/drivers/mtd/cmdlinepart.c
@@ -32,13 +32,6 @@
  /* error message prefix */
  #define ERRP "mtd: "

-/* debug macro */
-#if 0
-#define dbg(x) do { printk("DEBUG-CMDLINE-PART: "); printk x; } while (0)
-#else
-#define dbg(x)
-#endif
-

  /* special size referring to all the remaining space in a partition */
  #define SIZE_REMAINING UINT_MAX
@@ -175,13 +168,6 @@ static struct mtd_partition * newpart(char *s,
  	parts[this_part].name = extra_mem;
  	extra_mem += name_len + 1;

-	dbg(("partition %d: name <%s>, offset %llx, size %llx, mask flags %x\n",
-	     this_part,
-	     parts[this_part].name,
-	     parts[this_part].offset,
-	     parts[this_part].size,
-	     parts[this_part].mask_flags));
-
  	/* return (updated) pointer to extra_mem memory */
  	if (extra_mem_ptr)
  	  *extra_mem_ptr = extra_mem;
@@ -215,8 +201,6 @@ static int mtdpart_setup_real(char *s)
  		}
  		mtd_id_len = p - mtd_id;

-		dbg(("parsing <%s>\n", p+1));
-
  		/*
  		 * parse one mtd. have it reserve memory for the
  		 * struct cmdline_mtd_partition and the mtd-id string.
@@ -253,10 +237,6 @@ static int mtdpart_setup_real(char *s)
  		this_mtd->next = partitions;
  		partitions = this_mtd;

-		dbg(("mtdid=<%s> num_parts=<%d>\n",
-		     this_mtd->mtd_id, this_mtd->num_parts));
-
-
  		/* EOS - we're done */
  		if (*s == 0)
  			break;
-- 
1.7.1

                 reply	other threads:[~2010-07-12  2:54 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=4C3A83E7.3040807@gmail.com \
    --to=nealb001@gmail.com \
    --cc=Artem.Bityutskiy@nokia.com \
    --cc=cascardo@holoscopio.com \
    --cc=dwmw2@infradead.org \
    --cc=jkosina@suse.cz \
    --cc=julia@diku.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=maximlevitsky@gmail.com \
    --cc=mohanlaljangir@gmail.com \
    --cc=rmk+kernel@arm.linux.org.uk \
    /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;
as well as URLs for NNTP newsgroup(s).