changeset f17c012ecfa3 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=f17c012ecfa3
description:
        sim: Only print the power state transition warning once

        A lot of objects seem to request no-op power transitions which
        currently results in large amounts of warnings. These warnings are
        benign and risk hiding more serious warnings. Make the warning a
        warn_once to prevent console flooding.

        Change-Id: I86c74b4224b167f14469250ef86ab69fde7a227e
        Signed-off-by: Andreas Sandberg <[email protected]>

diffstat:

 src/sim/clocked_object.cc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 7ac58128fbc5 -r f17c012ecfa3 src/sim/clocked_object.cc
--- a/src/sim/clocked_object.cc Mon Jun 06 17:16:44 2016 +0100
+++ b/src/sim/clocked_object.cc Mon Jun 06 17:16:44 2016 +0100
@@ -78,8 +78,8 @@
 {
     // Function should ideally be called only when there is a state change
     if (_currPwrState == p) {
-        warn("ClockedObject: Already in the requested power state, request "\
-             "ignored");
+        warn_once("ClockedObject: Already in the requested power state, " \
+                  "request ignored");
         return;
     }
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to