From: Kevin Lim Date: Tue, 7 Nov 2006 20:45:03 +0000 (-0500) Subject: Fix error message. X-Git-Tag: m5_2.0_beta2~53^2~3^2~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea5df468820c1c152ecd6932ac6a2a67b3f1725d;p=gem5.git Fix error message. --HG-- extra : convert_revision : 7ac0f40595c89b0d9352e82e447d25380b038408 --- 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()