ruby: slicc: fix error msg in TypeFieldMemberAST.py
authorMalek Musleh <malek.musleh@gmail.com>
Tue, 21 May 2013 16:57:14 +0000 (11:57 -0500)
committerMalek Musleh <malek.musleh@gmail.com>
Tue, 21 May 2013 16:57:14 +0000 (11:57 -0500)
src/mem/slicc/ast/TypeFieldMemberAST.py

index 26d3ab2c674fc7e975e0153b9f46faa371cc5c1c..30e2fcda54bf5500570c69c32af23b5c7447210a 100644 (file)
@@ -54,4 +54,4 @@ class TypeFieldMemberAST(TypeFieldAST):
         if not type.addDataMember(self.field_id, field_type, self.pairs,
                                   init_code):
 
-            self.error("Duplicate data member: %s:%s" % (type_ptr, field_id))
+            self.error("Duplicate data member: %s:%s" % (field_type, self.field_id))