1
0
Fork 0
forked from len0rd/rockbox

MMC driver does now handle block sizes != 512 bytes, which is necessary to support cards > 1 GB. Changed error handling to use the same method as other parts of rockbox, allowing to trace the call chain. Long policy, code cleanup.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6366 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-04-28 01:11:21 +00:00
parent 7e3f91d3d8
commit a7f7781dca
3 changed files with 357 additions and 166 deletions

View file

@ -1678,8 +1678,10 @@ bool dbg_mmc_info(void)
(int) mmc_extract_bits(card->cid, 0, 8),
(int) mmc_extract_bits(card->cid, 8, 16));
lcd_puts(0, 4, pbuf);
snprintf(pbuf, sizeof(pbuf), "Sectors: %08x", card->numsectors);
snprintf(pbuf, sizeof(pbuf), "Blocks: %08lx", card->numblocks);
lcd_puts(0, 5, pbuf);
snprintf(pbuf, sizeof(pbuf), "Blocksize: %d", card->blocksize);
lcd_puts(0, 6, pbuf);
}
else /* Technical details */
{