[PATCH 05/44] tools/power turbostat: Baytrail: remove debug line in quiet mode

From: Len Brown
Date: Wed Mar 01 2017 - 00:58:15 EST


From: Len Brown <len.brown@xxxxxxxxx>

Without --debug, a debug line was printed on Baytrail:

SLM BCLK: 83.3 Mhz

Signed-off-by: Len Brown <len.brown@xxxxxxxxx>
---
tools/power/x86/turbostat/turbostat.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 1b762f67e3e2..9b35c9bb0489 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -3388,7 +3388,8 @@ double slm_bclk(void)
}
freq = slm_freq_table[i];

- fprintf(outf, "SLM BCLK: %.1f Mhz\n", freq);
+ if (debug)
+ fprintf(outf, "SLM BCLK: %.1f Mhz\n", freq);

return freq;
}
--
2.11.0.161.g6610af872