summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sim/clocked_object.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/clocked_object.cc b/src/sim/clocked_object.cc
index 44b25cd5d..f0b176509 100644
--- a/src/sim/clocked_object.cc
+++ b/src/sim/clocked_object.cc
@@ -78,8 +78,8 @@ ClockedObject::pwrState(Enums::PwrState p)
{
// 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;
}