[MTD] mtd_blkdevs.c: Fix names when many devices/partitions are created
authorTodd Poynor <tpoynor@mvista.com>
Fri, 29 Jul 2005 19:42:07 +0000 (20:42 +0100)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Thu, 4 Aug 2005 10:51:18 +0000 (12:51 +0200)
commit65a8de36b48f1c1cd02940c4480bc8e290540d18
tree733f1f4f457925be88d3dc5451f0413ed8e37108
parent7ad2b7f5955f117bfca99c6b7cd7483d25f6a8af
[MTD] mtd_blkdevs.c: Fix names when many devices/partitions are created

mtdblock (and other mtd modules that use the mtd_blkdevs interface
between the mtd translation layers and the linux block layer) handles
incorrectly more than 10 devices or 26 partitions in the names passed to
the generic disk layer.  This causes the device file names and other
info kept by the generic disk/block layers to have names such as
"mtdblock<".  Use integer formatting for device numbers; use "aa-az"
for partitions 27-52, "ba-bz" for 53-78...

Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/mtd_blkdevs.c