uefi: demote expected no-GPT and no-EDID fallbacks from warn to debug

This commit is contained in:
Red Bear OS
2026-07-16 07:30:29 +09:00
parent c78c3a63c0
commit 6e11964121
2 changed files with 11 additions and 3 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ fn gpt_find_redoxfs_offset(disk: &mut DiskEfi) -> u64 {
header_buf[..copy_len].copy_from_slice(&read_buf[..copy_len]);
if &header_buf[0..8] != b"EFI PART" {
log::warn!("GPT: no valid signature at LBA 1");
// Expected for a raw (partition-less) RedoxFS live image: there is no
// GPT, so fall back to the 2 MiB offset where RedoxFS lives. Diagnostic
// only, not a warning.
log::debug!("GPT: no signature at LBA 1 (raw RedoxFS image); using 2 MiB fallback");
return 2 * crate::MIBI as u64;
}
+7 -2
View File
@@ -121,8 +121,13 @@ impl OsEfi {
match EdidActive::handle_protocol(handle) {
Ok(efi_edid) => Some(efi_edid),
Err(err) => {
log::warn!(
"Failed to get EFI EDID from handle {:?}: {:?}",
// Many firmwares (incl. QEMU/OVMF) do
// not implement the EDID protocol; the
// resolution list still works without
// it, so this is diagnostic, not a
// warning.
log::debug!(
"EFI EDID unavailable from handle {:?}: {:?}",
handle,
err
);