From 318356e54c09450900a9f39e9a6cdaf64a51bdf9 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Wed, 5 Jul 2023 14:33:00 -0700 Subject: [PATCH] [yellowstone] Log a line when MBR is incorrect --- sys/yellowstone/hw/gpt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/yellowstone/hw/gpt.cpp b/sys/yellowstone/hw/gpt.cpp index dcd6bea..b94e511 100644 --- a/sys/yellowstone/hw/gpt.cpp +++ b/sys/yellowstone/hw/gpt.cpp @@ -55,6 +55,7 @@ glcr::ErrorCode GptReader::ParsePartitionTables() { denali_->ReadSectors(0, 0, 2)); uint16_t* mbr_sig = reinterpret_cast(lba_1_and_2.vaddr() + 0x1FE); if (*mbr_sig != 0xAA55) { + dbgln("Invalid MBR Sig: %x", *mbr_sig); return glcr::FAILED_PRECONDITION; } MbrPartition* first_partition =