[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>
This commit is contained in:
parent
f63af11ddb
commit
3a3688b6af
@ -70,7 +70,7 @@ static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chi
|
|||||||
interleave and device type, etc. */
|
interleave and device type, etc. */
|
||||||
if (!genprobe_new_chip(map, cp, &cfi)) {
|
if (!genprobe_new_chip(map, cp, &cfi)) {
|
||||||
/* The probe didn't like it */
|
/* The probe didn't like it */
|
||||||
printk(KERN_DEBUG "%s: Found no %s device at location zero\n",
|
pr_debug("%s: Found no %s device at location zero\n",
|
||||||
cp->name, map->name);
|
cp->name, map->name);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user