]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [NOR] gen_probe: No debug message when debugging is disabled
authorJean Delvare <khali@linux-fr.org>
Thu, 10 Jul 2008 11:37:08 +0000 (13:37 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Jul 2008 17:23:11 +0000 (18:23 +0100)
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>
drivers/mtd/chips/gen_probe.c

index e53a58ae384f9f0f9b0d41859044c03cb45255f9..f061885b2812dc5d04bba96f488aa6fa18a9ae49 100644 (file)
@@ -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;
        }