aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2008-07-10 07:37:08 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-11 13:23:11 -0400
commit3a3688b6af103e2c86a7cfc2050988655e184ecc (patch)
treefc1194244fe5e76d1c9e141f618cf01116d8747a /drivers
parentf63af11ddb508ce7b2a270515244d145248cad7f (diff)
[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@linux-fr.org> Tested-by: John stoffel <john@stoffel.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/chips/gen_probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c
index e53a58ae384f..f061885b2812 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
70 interleave and device type, etc. */ 70 interleave and device type, etc. */
71 if (!genprobe_new_chip(map, cp, &cfi)) { 71 if (!genprobe_new_chip(map, cp, &cfi)) {
72 /* The probe didn't like it */ 72 /* The probe didn't like it */
73 printk(KERN_DEBUG "%s: Found no %s device at location zero\n", 73 pr_debug("%s: Found no %s device at location zero\n",
74 cp->name, map->name); 74 cp->name, map->name);
75 return NULL; 75 return NULL;
76 } 76 }
77 77