Params: Fix a broken error message in verifyIp.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 20 Dec 2010 09:20:58 +0000 (04:20 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 20 Dec 2010 09:20:58 +0000 (04:20 -0500)
src/python/m5/params.py

index 3f5ceb75a47f664ef9351cd57a75ee5baac7cbd8..0093a411d6bfd8bd3fc703e55750d406eae317a0 100644 (file)
@@ -701,7 +701,7 @@ class IpAddress(ParamValue):
 
     def verifyIp(self):
         if self.ip < 0 or self.ip >= (1 << 32):
-            raise TypeError, "invalid ip address %#08x" % ip
+            raise TypeError, "invalid ip address %#08x" % self.ip
 
     def getValue(self):
         from m5.internal.params import IpAddress