diff options
author | Dave Jones <davej@redhat.com> | 2011-02-18 13:51:20 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-02-18 13:51:20 -0500 |
commit | 163ebd453b3483d29d7b61695eb520cd56c585b5 (patch) | |
tree | 37fe49825d66cdbc2cd13dd3d7425f64d8664ec1 | |
parent | c4f5df2a22fced48450af08c0623ac38bea4f307 (diff) |
print thermal status raw value.
and clean up parsing
-rw-r--r-- | Intel/MSR-PM.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Intel/MSR-PM.c b/Intel/MSR-PM.c index f00034d..6151657 100644 --- a/Intel/MSR-PM.c +++ b/Intel/MSR-PM.c @@ -54,11 +54,15 @@ void dump_centrino_MSRs(struct cpudata *cpu) printf(" Software-controlled clock disabled (full speed)\n"); } if (read_msr (cpu->number, MSR_IA32_THERM_STATUS, &val) == 1) { /* THERM_STATUS */ - printf(" Thermal status: "); - if (val & (1<<0)) - printf("TooHot "); - if (val & (1<<1)) - printf("WasTooHot "); + printf(" Thermal status: %llx", val); + if (val & (1<<0|1<<1)) { + printf(" ["); + if (val & (1<<0)) + printf("TooHot "); + if (val & (1<<1)) + printf("WasTooHot "); + printf("]"); + } printf("\n"); } printf("\n"); |