[MTD] [NOR] gen_probe: No debug message when debugging is disabled

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Jul 11 13:59:02 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3a3688b6af103e2c86a7cfc2050988655e184ecc
Commit:     3a3688b6af103e2c86a7cfc2050988655e184ecc
Parent:     f63af11ddb508ce7b2a270515244d145248cad7f
Author:     Jean Delvare <khali at linux-fr.org>
AuthorDate: Thu Jul 10 13:37:08 2008 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jul 11 18:23:11 2008 +0100

    [MTD] [NOR] gen_probe: No debug message when debugging is disabled
    
    Use pr_debug(...) instead of printk(KERN_DEBUG ...) so that the message
    is only printed when debugging is enabled.
    
    Signed-off-by: Jean Delvare <khali at linux-fr.org>
    Tested-by: John stoffel <john at stoffel.org>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/chips/gen_probe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c
index e53a58a..f061885 100644
--- a/drivers/mtd/chips/gen_probe.c
+++ b/drivers/mtd/chips/gen_probe.c
@@ -70,8 +70,8 @@ static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chi
 	   interleave and device type, etc. */
 	if (!genprobe_new_chip(map, cp, &cfi)) {
 		/* The probe didn't like it */
-		printk(KERN_DEBUG "%s: Found no %s device at location zero\n",
-		       cp->name, map->name);
+		pr_debug("%s: Found no %s device at location zero\n",
+			 cp->name, map->name);
 		return NULL;
 	}
 



More information about the linux-mtd-cvs mailing list