Skip to content

Commit

Permalink
tools/power turbostat: fix x2apic debug message output file
Browse files Browse the repository at this point in the history
A recently added x2apic debug message was hard-coded to stderr.
That doesn't work with "-o outfile".

Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
lenb committed Jul 26, 2018
1 parent 4f206a0 commit cfce494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/x86/turbostat/turbostat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit cfce494

Please sign in to comment.