From: Brad Beckmann Date: Wed, 18 Nov 2009 21:55:58 +0000 (-0800) Subject: ruby: slicc action error fix X-Git-Tag: stable_2012_02_02~1575^2~40 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=994169327a232a4325d529a7071c295fa39cf7d2;p=gem5.git ruby: slicc action error fix Small fix to the State Machine error message when duplicate actions are defined. --- diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index e54d6a435..8583ed46b 100644 --- a/src/mem/slicc/symbols/StateMachine.py +++ b/src/mem/slicc/symbols/StateMachine.py @@ -68,7 +68,7 @@ class StateMachine(Symbol): # Check for duplicate action for other in self.actions.itervalues(): if action.ident == other.ident: - a.warning("Duplicate action definition: %s" % a.ident) + action.warning("Duplicate action definition: %s" % action.ident) action.error("Duplicate action definition: %s" % action.ident) if action.short == other.short: other.warning("Duplicate action shorthand: %s" % other.ident)