From: Len Brown <len.br...@intel.com>

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

SLM BCLK: 83.3 Mhz

Signed-off-by: Len Brown <len.br...@intel.com>
---
 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

Reply via email to