Skip to content

Commit

Permalink
[MTD] [NOR] gen_probe: No debug message when debugging is disabled
Browse files Browse the repository at this point in the history
Use pr_debug(...) instead of printk(KERN_DEBUG ...) so that the message
is only printed when debugging is enabled.

Signed-off-by: Jean Delvare <[email protected]>
Tested-by: John stoffel <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
Jean Delvare authored and David Woodhouse committed Jul 11, 2008
1 parent f63af11 commit 3a3688b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/chips/gen_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3a3688b

Please sign in to comment.