aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/hdt/hdt-cli-dmi.c2
-rw-r--r--com32/hdt/hdt-menu-dmi.c4
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++;