-#ifdef SPIFLASH_DEBUG
- printk (KERN_DEBUG
- "mtd->name = %s\n"
- "mtd->size = 0x%.8x (%uM)\n"
- "mtd->erasesize = 0x%.8x (%uK)\n"
- "mtd->numeraseregions = %d\n",
- mtd->name,
- mtd->size, mtd->size / (1024*1024),
- mtd->erasesize, mtd->erasesize / 1024,
- mtd->numeraseregions);
-
- if (mtd->numeraseregions) {
- for (result = 0; result < mtd->numeraseregions; result++) {
- printk (KERN_DEBUG
- "\n\n"
- "mtd->eraseregions[%d].offset = 0x%.8x\n"
- "mtd->eraseregions[%d].erasesize = 0x%.8x (%uK)\n"
- "mtd->eraseregions[%d].numblocks = %d\n",
- result,mtd->eraseregions[result].offset,
- result,mtd->eraseregions[result].erasesize,mtd->eraseregions[result].erasesize / 1024,
- result,mtd->eraseregions[result].numblocks);
- }
- }
-#endif