aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli-hdt.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-11-30 15:57:41 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-04 10:11:17 +0100
commit42f6b8a33d759fb7e40f83609e09dc45372f4aad (patch)
treea7c9b9f083c48825b83fee78247ff1e7bc429e9f /com32/hdt/hdt-cli-hdt.c
parent5e22b9c7fc046100f26974536333149eecd60164 (diff)
downloadsyslinux.git-42f6b8a33d759fb7e40f83609e09dc45372f4aad.tar.gz
syslinux.git-42f6b8a33d759fb7e40f83609e09dc45372f4aad.tar.xz
syslinux.git-42f6b8a33d759fb7e40f83609e09dc45372f4aad.zip
hdt: summary mode only show memory size
Impact: visual Summary mode only show the detected memory size. Showing used banks is too much verbose for a summary
Diffstat (limited to 'com32/hdt/hdt-cli-hdt.c')
-rw-r--r--com32/hdt/hdt-cli-hdt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c
index 86d95fe7..71d99a4f 100644
--- a/com32/hdt/hdt-cli-hdt.c
+++ b/com32/hdt/hdt-cli-hdt.c
@@ -199,6 +199,7 @@ void main_show_summary(int argc __unused, char **argv __unused,
detect_pci(hardware); /* pxe is detected in the pci */
detect_dmi(hardware);
cpu_detect(hardware);
+ detect_memory(hardware);
reset_more_printf();
clear_screen();
main_show_cpu(argc, argv, hardware);
@@ -210,10 +211,9 @@ void main_show_summary(int argc __unused, char **argv __unused,
more_printf("Bios\n");
more_printf(" Version : %s\n", hardware->dmi.bios.version);
more_printf(" Release : %s\n", hardware->dmi.bios.release_date);
-
- int argc = 1;
- char *argv[1] = { "0" };
- show_dmi_memory_modules(argc, argv, hardware);
+ more_printf("Memory Size : %lu MB (%lu KB)\n",
+ (hardware->detected_memory_size + (1 << 9)) >> 10,
+ hardware->detected_memory_size);
}
main_show_pci(argc, argv, hardware);