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
This commit is contained in:
Frank Gevaerts 2009-11-09 23:26:47 +00:00
parent 3502e70366
commit 78f8667d57

View file

@ -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
{