From 78f8667d57e13ef579c892ccc5483b8baafd2fe6 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 9 Nov 2009 23:26:47 +0000 Subject: Also fix Debug->View partitions when SECTOR_SIZE!=512 Flyspray: FS#10770 Author: Laurent Papier git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23596 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 4b80d81c55..84811e89dc 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -754,7 +754,7 @@ static const char* dbg_partitions_getname(int selected_item, void *data, struct partinfo* p = disk_partinfo(partition); if (selected_item%2) { - snprintf(buffer, buffer_len, " T:%x %ld MB", p->type, p->size / 2048); + snprintf(buffer, buffer_len, " T:%x %ld MB", p->type, p->size / ( 2048 / ( SECTOR_SIZE / 512 ))); } else { -- cgit v1.2.3