Skip to contentSkip to conversation

No debug message when debugging is disabled

PATCH New Jean Delvare 1 participant 1 message Jul 10, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
This patch was already sent on:
* 2008-06-12

David, can you please add this patch to your tree? Thanks.

 drivers/mtd/chips/gen_probe.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/chips/gen_probe.c +2 -2
@@ -71,8 +71,8 @@ static struct cfi_private *genprobe_iden
 	   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;
 	}
 
Signature · 1 line
Jean Delvare