forked from len0rd/rockbox
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:
parent
3502e70366
commit
78f8667d57
1 changed files with 1 additions and 1 deletions
|
|
@ -754,7 +754,7 @@ static const char* dbg_partitions_getname(int selected_item, void *data,
|
||||||
struct partinfo* p = disk_partinfo(partition);
|
struct partinfo* p = disk_partinfo(partition);
|
||||||
if (selected_item%2)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue