Tone down overly noisy JEDEC probing
Hi:
If you have a look at
http://bugs.debian.org/cgi-bin/bugreport.cgi/dmesg.dump?bug=250093&msg=3&att=2
you'll see that JEDEC probing is way too noisy. Since that module is now being loaded automatically by hotplug, it should probably be toned down.
The following patch turns the printk's into DEBUG calls. Please let me know if you've got any problems with that.
Thanks,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt===== drivers/mtd/chips/gen_probe.c 1.4 vs edited =====
drivers/mtd/chips/gen_probe.c +3 -2
@@ -65,8 +65,9 @@interleave and device type, etc. */ if (!genprobe_new_chip (map, cp, &cfi)) {/* The probe didn't like it */ -printk (KERN_WARNING "%s: Found no %s device at location zero\n" , - cp->name, map->name); +DEBUG (MTD_DEBUG_LEVEL3 , +"MTD %s(): %s: Found no %s device at location zero\n" , + __func__, cp->name, map->name);return NULL ; }
===== drivers/mtd/chips/jedec_probe.c 1.11 vs edited =====
drivers/mtd/chips/jedec_probe.c +4 -2
@@ -1668,8 +1668,10 @@ cfi->mfr =jedec_read_mfr (map, base, cfi); cfi->id =jedec_read_id (map, base, cfi); -printk (KERN_INFO "Search for id:(%02x %02x) interleave(%d) type(%d)\n" , - cfi->mfr, cfi->id, cfi->interleave, cfi->device_type); +DEBUG (MTD_DEBUG_LEVEL3 , +"MTD %s(): Search for id:(%02x %02x) interleave(%d) type(%d)\n" , + __func__, cfi->mfr, cfi->id, cfi->interleave, + cfi->device_type);for (i=0 ; i<sizeof (jedec_table)/sizeof (jedec_table[0 ]); i++) {if (jedec_match ( base, map, cfi, &jedec_table[i] ) ) { DEBUG( MTD_DEBUG_LEVEL3,