uefi: demote expected no-GPT and no-EDID fallbacks from warn to debug
This commit is contained in:
@@ -41,7 +41,10 @@ fn gpt_find_redoxfs_offset(disk: &mut DiskEfi) -> u64 {
|
|||||||
header_buf[..copy_len].copy_from_slice(&read_buf[..copy_len]);
|
header_buf[..copy_len].copy_from_slice(&read_buf[..copy_len]);
|
||||||
|
|
||||||
if &header_buf[0..8] != b"EFI PART" {
|
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;
|
return 2 * crate::MIBI as u64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
-2
@@ -121,8 +121,13 @@ impl OsEfi {
|
|||||||
match EdidActive::handle_protocol(handle) {
|
match EdidActive::handle_protocol(handle) {
|
||||||
Ok(efi_edid) => Some(efi_edid),
|
Ok(efi_edid) => Some(efi_edid),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
log::warn!(
|
// Many firmwares (incl. QEMU/OVMF) do
|
||||||
"Failed to get EFI EDID from handle {:?}: {:?}",
|
// 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,
|
handle,
|
||||||
err
|
err
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user