mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
bootloader: Fix red on hosted bootloaders
Fixes: 888ce7cae8
Change-Id: I802779cf158634d5b3b547d74999798cb56d2882
This commit is contained in:
parent
93b1611474
commit
9e79ebf78d
1 changed files with 3 additions and 1 deletions
|
@ -115,14 +115,16 @@ void error(int errortype, int error, bool shutdown)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EDISK: {
|
case EDISK: {
|
||||||
struct partinfo pinfo;
|
|
||||||
printf("No partition found");
|
printf("No partition found");
|
||||||
|
#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
|
||||||
for (int i = 0 ; i < NUM_VOLUMES ; i++) {
|
for (int i = 0 ; i < NUM_VOLUMES ; i++) {
|
||||||
|
struct partinfo pinfo;
|
||||||
disk_partinfo(i, &pinfo);
|
disk_partinfo(i, &pinfo);
|
||||||
if (pinfo.type)
|
if (pinfo.type)
|
||||||
printf("P%d T%02x S%08lx",
|
printf("P%d T%02x S%08lx",
|
||||||
i, pinfo.type, pinfo.size);
|
i, pinfo.type, pinfo.size);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case EBOOTFILE:
|
case EBOOTFILE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue