Skip to content

Commit 15fbc75

Browse files
committed
smbios: Decode chassis type
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 8f9ff28 commit 15fbc75

File tree

1 file changed

+6
-0
lines changed
  • framework_lib/src/commandline

1 file changed

+6
-0
lines changed

framework_lib/src/commandline/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,12 @@ fn smbios_info() {
10211021
println!(" Family: {}", family);
10221022
}
10231023
}
1024+
DefinedStruct::SystemChassisInformation(data) => {
1025+
println!("System Chassis Information");
1026+
if let Some(chassis) = data.chassis_type() {
1027+
println!(" Type: {}", chassis);
1028+
}
1029+
}
10241030
DefinedStruct::BaseBoardInformation(data) => {
10251031
println!("BaseBoard Information");
10261032
if let Some(version) = dmidecode_string_val(&data.version()) {

0 commit comments

Comments
 (0)