From 62fcfb1c300e41092f902a86f951d985bd1b9eca Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Wed, 21 Dec 2016 15:14:11 +0000 Subject: [PATCH] libs/utils/trace: Replace print statement with logging call --- libs/utils/trace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/utils/trace.py b/libs/utils/trace.py index e8efebaa0..80d53cbab 100644 --- a/libs/utils/trace.py +++ b/libs/utils/trace.py @@ -625,7 +625,8 @@ class Trace(object): power_max = em_lcpu['nrg_max'] * lcpus + em_bcpu['nrg_max'] * bcpus + \ em_lcluster['nrg_max'] + em_bcluster['nrg_max'] - print "Maximum estimated system energy: {0:d}".format(power_max) + self._log.debug( + "Maximum estimated system energy: {0:d}".format(power_max)) df = self._dfg_trace_event('sched_energy_diff') df['nrg_diff_pct'] = SCHED_LOAD_SCALE * df.nrg_diff / power_max -- GitLab