summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-04-28 01:11:21 +0000
committerJens Arnold <amiconn@rockbox.org>2005-04-28 01:11:21 +0000
commita7f7781dca4db172a507e7e6f73bee03fc7deb2f (patch)
treebccca466c70e36229ab37f32b479f7271ddc6453 /apps
parent7e3f91d3d8bb0a672bd9803b84c2f08b76c92b60 (diff)
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
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index f1402950a9..92fe0be63c 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -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 */
{