diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2009-11-09 23:26:47 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2009-11-09 23:26:47 +0000 |
| commit | 78f8667d57e13ef579c892ccc5483b8baafd2fe6 (patch) | |
| tree | 77f3abb54b4ec3728cad958b8cb4d8c7275e7f43 /apps/debug_menu.c | |
| parent | 3502e7036667ca9830629a398511c8acf79fc397 (diff) | |
| download | rockbox-78f8667d57e13ef579c892ccc5483b8baafd2fe6.zip rockbox-78f8667d57e13ef579c892ccc5483b8baafd2fe6.tar.gz rockbox-78f8667d57e13ef579c892ccc5483b8baafd2fe6.tar.bz2 rockbox-78f8667d57e13ef579c892ccc5483b8baafd2fe6.tar.xz | |
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
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 4b80d81..84811e8 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 { |