From a7f7781dca4db172a507e7e6f73bee03fc7deb2f Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 28 Apr 2005 01:11:21 +0000 Subject: 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 --- apps/debug_menu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index f140295..92fe0be 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 */ { -- cgit v1.1