Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4c0d0e2 authored by Len Brown's avatar Len Brown
Browse files

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: default avatarLen Brown <len.brown@intel.com>
parent 1765a367
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -137,7 +137,6 @@ void cmdline(int argc, char **argv)
void validate_cpuid(void)
void validate_cpuid(void)
{
{
	unsigned int eax, ebx, ecx, edx, max_level;
	unsigned int eax, ebx, ecx, edx, max_level;
	char brand[16];
	unsigned int fms, family, model, stepping;
	unsigned int fms, family, model, stepping;


	eax = ebx = ecx = edx = 0;
	eax = ebx = ecx = edx = 0;
@@ -160,8 +159,8 @@ void validate_cpuid(void)
		model += ((fms >> 16) & 0xf) << 4;
		model += ((fms >> 16) & 0xf) << 4;


	if (verbose > 1)
	if (verbose > 1)
		printf("CPUID %s %d levels family:model:stepping "
		printf("CPUID %d levels family:model:stepping "
			"0x%x:%x:%x (%d:%d:%d)\n", brand, max_level,
			"0x%x:%x:%x (%d:%d:%d)\n", max_level,
			family, model, stepping, family, model, stepping);
			family, model, stepping, family, model, stepping);


	if (!(edx & (1 << 5))) {
	if (!(edx & (1 << 5))) {