diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-04-19 09:40:41 +0200 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-04-19 09:40:41 +0200 |
commit | 577f705569c24a8fa6e18ba3afcbedaf7db838fb (patch) | |
tree | 656b99666a8c9f0a4b3bf02c6850b181b28ba6ed | |
parent | 5f036aa1ec3557f444fb8c49f782d31dd53979e7 (diff) | |
download | syslinux.git-577f705569c24a8fa6e18ba3afcbedaf7db838fb.tar.gz syslinux.git-577f705569c24a8fa6e18ba3afcbedaf7db838fb.tar.xz syslinux.git-577f705569c24a8fa6e18ba3afcbedaf7db838fb.zip |
hdt: Cleaning dmi chassis asset tag output
Impact: Visual
Some users reported this dmi/chassis/asset tag could reports many
spaces.
-rw-r--r-- | com32/hdt/hdt-cli-dmi.c | 2 | ||||
-rw-r--r-- | com32/hdt/hdt-menu-dmi.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/com32/hdt/hdt-cli-dmi.c b/com32/hdt/hdt-cli-dmi.c index bea852db..76905db6 100644 --- a/com32/hdt/hdt-cli-dmi.c +++ b/com32/hdt/hdt-cli-dmi.c @@ -172,7 +172,7 @@ static void show_dmi_chassis(int argc __unused, char** argv __unused, hardware->dmi.chassis.version); printf(" Serial : %s\n", hardware->dmi.chassis.serial); printf(" Asset Tag : %s\n", - hardware->dmi.chassis.asset_tag); + del_multiple_spaces(hardware->dmi.chassis.asset_tag)); printf(" Boot up state : %s\n", hardware->dmi.chassis.boot_up_state); printf(" Power supply state : %s\n", diff --git a/com32/hdt/hdt-menu-dmi.c b/com32/hdt/hdt-menu-dmi.c index fc353eb9..5f87df93 100644 --- a/com32/hdt/hdt-menu-dmi.c +++ b/com32/hdt/hdt-menu-dmi.c @@ -126,9 +126,9 @@ void compute_chassis(struct s_my_menu *menu, s_dmi * dmi) menu->items_count++; snprintf(buffer, sizeof buffer, "Asset Tag : %s", - dmi->chassis.asset_tag); + del_multiple_spaces(dmi->chassis.asset_tag)); snprintf(statbuffer, sizeof statbuffer, "Asset Tag: %s", - dmi->chassis.asset_tag); + del_multiple_spaces(dmi->chassis.asset_tag)); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; |