From 9e79ebf78d81aa9bea8dc74b820245affd75affd Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 17 Apr 2025 08:31:04 -0400 Subject: [PATCH] bootloader: Fix red on hosted bootloaders Fixes: 888ce7cae80f9ae77aab7f033636e578889573b0 Change-Id: I802779cf158634d5b3b547d74999798cb56d2882 --- bootloader/common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootloader/common.c b/bootloader/common.c index d8f977b97b..7ef5d4fb32 100644 --- a/bootloader/common.c +++ b/bootloader/common.c @@ -115,14 +115,16 @@ void error(int errortype, int error, bool shutdown) break; case EDISK: { - struct partinfo pinfo; printf("No partition found"); +#if !(CONFIG_PLATFORM & PLATFORM_HOSTED) for (int i = 0 ; i < NUM_VOLUMES ; i++) { + struct partinfo pinfo; disk_partinfo(i, &pinfo); if (pinfo.type) printf("P%d T%02x S%08lx", i, pinfo.type, pinfo.size); } +#endif break; } case EBOOTFILE: