Commit 3a3688b6 authored by Jean Delvare's avatar Jean Delvare Committed by David Woodhouse

[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: default avatarJean Delvare <khali@linux-fr.org>
Tested-by: default avatarJohn stoffel <john@stoffel.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent f63af11d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment