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

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

tools/power turbostat: fix x2apic debug message output file



A recently added x2apic debug message was hard-coded to stderr.
That doesn't work with "-o outfile".

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 4f206a0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1690,7 +1690,7 @@ void get_apic_id(struct thread_data *t)
	t->x2apic_id = edx;

	if (debug && (t->apic_id != t->x2apic_id))
		fprintf(stderr, "cpu%d: apic 0x%x x2apic 0x%x\n", t->cpu_id, t->apic_id, t->x2apic_id);
		fprintf(outf, "cpu%d: apic 0x%x x2apic 0x%x\n", t->cpu_id, t->apic_id, t->x2apic_id);
}

/*