From 42f6b8a33d759fb7e40f83609e09dc45372f4aad Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Mon, 30 Nov 2009 15:57:41 +0100 Subject: [PATCH] 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 --- com32/hdt/hdt-cli-hdt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c index 86d95fe..71d99a4 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); -- 2.7.4