[yellowstone] Log a line when MBR is incorrect
This commit is contained in:
parent
a8db218204
commit
318356e54c
|
@ -55,6 +55,7 @@ glcr::ErrorCode GptReader::ParsePartitionTables() {
|
||||||
denali_->ReadSectors(0, 0, 2));
|
denali_->ReadSectors(0, 0, 2));
|
||||||
uint16_t* mbr_sig = reinterpret_cast<uint16_t*>(lba_1_and_2.vaddr() + 0x1FE);
|
uint16_t* mbr_sig = reinterpret_cast<uint16_t*>(lba_1_and_2.vaddr() + 0x1FE);
|
||||||
if (*mbr_sig != 0xAA55) {
|
if (*mbr_sig != 0xAA55) {
|
||||||
|
dbgln("Invalid MBR Sig: %x", *mbr_sig);
|
||||||
return glcr::FAILED_PRECONDITION;
|
return glcr::FAILED_PRECONDITION;
|
||||||
}
|
}
|
||||||
MbrPartition* first_partition =
|
MbrPartition* first_partition =
|
||||||
|
|
Loading…
Reference in New Issue