Skip to content

Commit

Permalink
smbios: Decode chassis type
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Oct 17, 2024
1 parent 8f9ff28 commit 15fbc75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions framework_lib/src/commandline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,12 @@ fn smbios_info() {
println!(" Family: {}", family);
}
}
DefinedStruct::SystemChassisInformation(data) => {
println!("System Chassis Information");
if let Some(chassis) = data.chassis_type() {
println!(" Type: {}", chassis);
}
}
DefinedStruct::BaseBoardInformation(data) => {
println!("BaseBoard Information");
if let Some(version) = dmidecode_string_val(&data.version()) {
Expand Down

0 comments on commit 15fbc75

Please sign in to comment.