diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-05-29 21:48:58 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-05-29 21:48:58 -0700 |
commit | 8dcbe8adb537dafcadbb97ff87605936fe42b2b7 (patch) | |
tree | 0510d86d2658dec2ddb02ca208167d8f9c24ecd4 /src/python | |
parent | 96138a79cddb6ea38800f4b097746cb8e1052a9e (diff) | |
download | gem5-8dcbe8adb537dafcadbb97ff87605936fe42b2b7.tar.xz |
Misc: Remove the URL from warnings, fatals, panics, etc.
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/m5/util/__init__.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/python/m5/util/__init__.py b/src/python/m5/util/__init__.py index f8db6e9a7..69f153bb4 100644 --- a/src/python/m5/util/__init__.py +++ b/src/python/m5/util/__init__.py @@ -42,22 +42,11 @@ from smartdict import SmartDict from sorteddict import SortedDict from region import neg_inf, pos_inf, Region, Regions -# define this here so we can use it right away if necessary -def errorURL(prefix, s): - try: - import zlib - hashstr = "%x" % zlib.crc32(s) - except: - hashstr = "UnableToHash" - return "For more information see: http://www.m5sim.org/%s/%s" % \ - (prefix, hashstr) - # panic() should be called when something happens that should never # ever happen regardless of what the user does (i.e., an acutal m5 # bug). def panic(fmt, *args): print >>sys.stderr, 'panic:', fmt % args - print >>sys.stderr, errorURL('panic',fmt) sys.exit(1) # fatal() should be called when the simulation cannot continue due to @@ -65,7 +54,6 @@ def panic(fmt, *args): # arguments, etc.) and not a simulator bug. def fatal(fmt, *args): print >>sys.stderr, 'fatal:', fmt % args - print >>sys.stderr, errorURL('fatal',fmt) sys.exit(1) class Singleton(type): |