aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-03-29 22:42:47 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2011-03-29 22:42:47 +0200
commitbc7ebf1eccf8899be05b0d8b476a7f504acf808b (patch)
treeb06fdeced90a3b2a69eba5c91474df60c279222e /com32/hdt
parent72139f9f6ac2aa5c449d74ae6bf179dc53be396f (diff)
downloadsyslinux-bc7ebf1eccf8899be05b0d8b476a7f504acf808b.tar.gz
syslinux-bc7ebf1eccf8899be05b0d8b476a7f504acf808b.tar.xz
syslinux-bc7ebf1eccf8899be05b0d8b476a7f504acf808b.zip
hdt: Displaying item name for missing dmi items
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-dump-dmi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/com32/hdt/hdt-dump-dmi.c b/com32/hdt/hdt-dump-dmi.c
index 2e876668..dfb08eea 100644
--- a/com32/hdt/hdt-dump-dmi.c
+++ b/com32/hdt/hdt-dump-dmi.c
@@ -38,6 +38,7 @@ void dump_hardware_security(struct s_hardware *hardware, ZZJSON_CONFIG *config,
}
APPEND_ARRAY
+ add_as("dmi.item","hardware_security")
add_ahs(dmi.hardware_security.power_on_passwd_status)
add_ahs(dmi.hardware_security.keyboard_passwd_status)
add_ahs(dmi.hardware_security.administrator_passwd_status)
@@ -48,17 +49,19 @@ void dump_hardware_security(struct s_hardware *hardware, ZZJSON_CONFIG *config,
void dump_oem_strings(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item) {
if (strlen(hardware->dmi.oem_strings) == 0) {
APPEND_ARRAY
- add_as("dmi.warning","No oem structure found")
+ add_as("dmi.warning","No OEM structure found")
END_OF_APPEND;
return;
}
APPEND_ARRAY
+ add_as("dmi.item","OEM")
add_ahs(dmi.oem_strings)
END_OF_APPEND;
}
void dump_memory_size(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item) {
APPEND_ARRAY
+ add_as("dmi.item","memory size")
add_ai("dmi.memory_size (KB)",hardware->detected_memory_size)
add_ai("dmi.memory_size (MB)",(hardware->detected_memory_size + (1 << 9)) >> 10)
END_OF_APPEND;