From b3017c8701b9b4e4ed041e224d163e82f198c10c Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 12 Feb 2005 23:09:00 +0000 Subject: Fixed calculation of MMC sector count. Display sector count instead of (rough) size info for debugging. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5937 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index ab1b60aaac..63630b2ba9 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1421,8 +1421,7 @@ 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), "Size: %d MB", - card->numsectors * SECTOR_SIZE / (1024*1024)); + snprintf(pbuf, sizeof(pbuf), "Sectors: %08x", card->numsectors); lcd_puts(0, 5, pbuf); } else /* Technical details */ -- cgit v1.2.3