[PATCH] mtd: nand: print erase size on init

Artem Bityutskiy dedekind1 at gmail.com
Thu Oct 30 00:33:10 PDT 2014


On Wed, 2014-10-22 at 19:48 -0300, Ezequiel Garcia wrote:
> Hm, this line is already way too long!

Can be split then.

> Moreover, you have a /proc and a /sysfs interface to retrieve the erasesize:
> 
> What's wrong with using any of the currently available interfaces:
> 
> $ cat /sys/class/mtd/mtd0/erasesize 
> 131072
> 
> $ cat /proc/mtd | grep mtd0 | awk '{print $3}'
> 00020000
> 
> Any reason why you want the info in the kernel log?

When people ask for help and send their logs, it is very handy to have
this information there.




More information about the linux-mtd mailing list