tools/power turbostat: Baytrail: remove debug line in quiet mode
authorLen Brown <len.brown@intel.com>
Sun, 8 Jan 2017 03:40:23 +0000 (22:40 -0500)
committerLen Brown <len.brown@intel.com>
Sat, 25 Feb 2017 21:52:31 +0000 (16:52 -0500)
Without --debug, a debug line was printed on Baytrail:

SLM BCLK: 83.3 Mhz

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c

index 1b762f6..9b35c9b 100644 (file)
@@ -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;
 }