[syslinux:master] hdt: Display cpu volatage in dmi mode (cli)

syslinux-bot for Erwan Velu erwan.velu at free.fr
Sun Feb 6 14:07:18 PST 2011


Commit-ID:  6be5744463d04fb8bd65dd5f5e4e302200fde9d9
Gitweb:     http://syslinux.zytor.com/commit/6be5744463d04fb8bd65dd5f5e4e302200fde9d9
Author:     Erwan Velu <erwan.velu at free.fr>
AuthorDate: Mon, 7 Dec 2009 21:19:51 +0100
Committer:  Erwan Velu <erwan.velu at free.fr>
CommitDate: Mon, 7 Dec 2009 21:19:51 +0100

hdt: Display cpu volatage in dmi mode (cli)

Impact: More info displayed

The CLI can shown the cpu voltage when running the DMI mode


---
 com32/hdt/hdt-cli-dmi.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/com32/hdt/hdt-cli-dmi.c b/com32/hdt/hdt-cli-dmi.c
index 70033ba..313445c 100644
--- a/com32/hdt/hdt-cli-dmi.c
+++ b/com32/hdt/hdt-cli-dmi.c
@@ -338,7 +338,10 @@ static void show_dmi_cpu(int argc __unused, char **argv __unused,
 		hardware->dmi.processor.signature.stepping);
     more_printf(" Cpu Minor Stepping : %u\n",
 		hardware->dmi.processor.signature.minor_stepping);
-// more_printf(" Voltage            : %f\n",hardware->dmi.processor.voltage);
+    more_printf("Voltage             : %d.%02d\n",
+                hardware->dmi.processor.voltage_mv / 1000,
+                hardware->dmi.processor.voltage_mv -
+                ((hardware->dmi.processor.voltage_mv / 1000) * 1000));
     more_printf(" Status             : %s\n", hardware->dmi.processor.status);
     more_printf(" Upgrade            : %s\n", hardware->dmi.processor.upgrade);
     more_printf(" Cache L1 Handle    : %s\n", hardware->dmi.processor.cache1);



More information about the Syslinux-commits mailing list