On (02/21/13 11:27), jani.nikula(a)linux.intel.com wrote:
From: Jani Nikula <jani.nikula(a)intel.com>
Suggest enabling CONFIG_X86_MSR. Add \n at the end of the error message.
Signed-off-by: Jani Nikula <jani.nikula(a)intel.com>
---
Note: This breaks translations looking for msgid "msr reg not found". I'm
unsure how you want this kind of changes handled.
---
src/cpu/intel_cpus.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cpu/intel_cpus.cpp b/src/cpu/intel_cpus.cpp
index 2b78d31..30c311f 100644
--- a/src/cpu/intel_cpus.cpp
+++ b/src/cpu/intel_cpus.cpp
@@ -58,7 +58,7 @@ static uint64_t get_msr(int cpu, uint64_t offset)
fd = sprintf(msr_path, "/dev/msr%d", cpu);
if (access(msr_path, R_OK) != 0){
- fprintf(stderr, _("msr reg not found"));
+ fprintf(stderr, _("Model-specific registers (MSR) not found (try enabling
CONFIG_X86_MSR).\n"));
exit(-2);
}
}
--
I think we're beyond the `string freeze' date, most likely it will not get into
upcoming release.
-ss
1.7.9.5
_______________________________________________
PowerTop mailing list
PowerTop(a)lists.01.org
https://lists.01.org/mailman/listinfo/powertop