diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-11-07 15:45:03 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-11-07 15:45:03 -0500 |
commit | ea5df468820c1c152ecd6932ac6a2a67b3f1725d (patch) | |
tree | ac6bec4dd533cbc4a0afe7de0e81d9a07e5cd794 /src/python/m5 | |
parent | 8ba73da056ae8b34713dc5b927d4ceb238db969a (diff) | |
download | gem5-ea5df468820c1c152ecd6932ac6a2a67b3f1725d.tar.xz |
Fix error message.
--HG--
extra : convert_revision : 7ac0f40595c89b0d9352e82e447d25380b038408
Diffstat (limited to 'src/python/m5')
-rw-r--r-- | src/python/m5/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/m5/__init__.py b/src/python/m5/__init__.py index d41fd5a61..42abfe2cc 100644 --- a/src/python/m5/__init__.py +++ b/src/python/m5/__init__.py @@ -171,10 +171,10 @@ def switchCpus(cpuList): for cpu in old_cpus: if not isinstance(cpu, objects.BaseCPU): - raise TypeError, "%s is not of type BaseCPU", cpu + raise TypeError, "%s is not of type BaseCPU" % cpu for cpu in new_cpus: if not isinstance(cpu, objects.BaseCPU): - raise TypeError, "%s is not of type BaseCPU", cpu + raise TypeError, "%s is not of type BaseCPU" % cpu # Drain all of the individual CPUs drain_event = cc_main.createCountedDrain() |