Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
fruhland committed Oct 11, 2024
1 parent b982a60 commit 4c275e0
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions towboot/src/boot/config_tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use alloc::collections::BTreeSet;
use alloc::slice;
use alloc::vec::Vec;

use log::{debug, warn};
use log::{debug, info, warn};
use multiboot12::information::InfoBuilder;
use acpi::rsdp::Rsdp;
use smbioslib::{SMBiosEntryPoint32, SMBiosEntryPoint64};
Expand Down Expand Up @@ -39,17 +39,29 @@ pub(super) fn parse_for_multiboot(info_builder: &mut InfoBuilder) {

handled_guids.insert(table.guid);
match table.guid {
ACPI_GUID => handle_acpi(&table, info_builder),
ACPI2_GUID => handle_acpi(&table, info_builder),
DEBUG_IMAGE_INFO_GUID => debug!("ignoring image debug info"),
DXE_SERVICES_GUID => debug!("ignoring dxe services table"),
HAND_OFF_BLOCK_LIST_GUID => debug!("ignoring hand-off block list"),
LZMA_COMPRESS_GUID => debug!("ignoring lzma filesystem"),
MEMORY_STATUS_CODE_RECORD_GUID => debug!("ignoring early memory info"),
MEMORY_TYPE_INFORMATION_GUID => debug!("ignoring early memory info"),
SMBIOS_GUID => handle_smbios(&table, info_builder),
SMBIOS3_GUID => handle_smbios(&table, info_builder),
guid => debug!("ignoring table {guid}"),
ACPI_GUID => {
info!("ACPI {}", table.guid);
handle_acpi(&table, info_builder)
},
ACPI2_GUID => {
info!("ACPIv2 {}", table.guid);
handle_acpi(&table, info_builder)
},
DEBUG_IMAGE_INFO_GUID => info!("ignoring image debug info {}", table.guid),
DXE_SERVICES_GUID => info!("ignoring dxe services table {}", table.guid),
HAND_OFF_BLOCK_LIST_GUID => info!("ignoring hand-off block list {}", table.guid),
LZMA_COMPRESS_GUID => info!("ignoring lzma filesystem {}", table.guid),
MEMORY_STATUS_CODE_RECORD_GUID => info!("ignoring early memory info {}", table.guid),
MEMORY_TYPE_INFORMATION_GUID => info!("ignoring early memory info {}", table.guid),
SMBIOS_GUID => {
info!("SMBIOS {}", table.guid);
handle_smbios(&table, info_builder)
},
SMBIOS3_GUID => {
info!("SMBIOSv3 {}", table.guid);
handle_smbios(&table, info_builder)
},,

Check failure on line 63 in towboot/src/boot/config_tables.rs

View workflow job for this annotation

GitHub Actions / test

expected pattern, found `,`
guid => info!("ignoring table {guid}"),
}
}
}
Expand Down

0 comments on commit 4c275e0

Please sign in to comment.