diff options
author | Len Brown <len.brown@intel.com> | 2011-07-15 23:39:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-07-15 23:39:00 -0400 |
commit | e4c0d0e22ce5cf84b3993b5af6c2dac08d52f06b (patch) | |
tree | 92634c8de7967149fe1ba904f2cac5fd5b0aae1b /tools | |
parent | 1765a367a3b5d5e9692949b0c5ec933eff2c0701 (diff) | |
download | linux-e4c0d0e22ce5cf84b3993b5af6c2dac08d52f06b.tar.bz2 |
tools/power x86_energy_perf_policy: fix print of uninitialized string
Looks like I was going to stick the brand string
in the verbose ouput, but didn't get around to it.
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c b/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c index 2618ef2ba31f..33c5c7ee148f 100644 --- a/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c +++ b/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c @@ -137,7 +137,6 @@ void cmdline(int argc, char **argv) void validate_cpuid(void) { unsigned int eax, ebx, ecx, edx, max_level; - char brand[16]; unsigned int fms, family, model, stepping; eax = ebx = ecx = edx = 0; @@ -160,8 +159,8 @@ void validate_cpuid(void) model += ((fms >> 16) & 0xf) << 4; if (verbose > 1) - printf("CPUID %s %d levels family:model:stepping " - "0x%x:%x:%x (%d:%d:%d)\n", brand, max_level, + printf("CPUID %d levels family:model:stepping " + "0x%x:%x:%x (%d:%d:%d)\n", max_level, family, model, stepping, family, model, stepping); if (!(edx & (1 << 5))) { |