Skip to content

Commit 9e79ebf

Browse files
committed
bootloader: Fix red on hosted bootloaders
Fixes: 888ce7c Change-Id: I802779cf158634d5b3b547d74999798cb56d2882
1 parent 93b1611 commit 9e79ebf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bootloader/common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,16 @@ void error(int errortype, int error, bool shutdown)
115115
break;
116116

117117
case EDISK: {
118-
struct partinfo pinfo;
119118
printf("No partition found");
119+
#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
120120
for (int i = 0 ; i < NUM_VOLUMES ; i++) {
121+
struct partinfo pinfo;
121122
disk_partinfo(i, &pinfo);
122123
if (pinfo.type)
123124
printf("P%d T%02x S%08lx",
124125
i, pinfo.type, pinfo.size);
125126
}
127+
#endif
126128
break;
127129
}
128130
case EBOOTFILE:

0 commit comments

Comments
 (0)