diff options
Diffstat (limited to 'src/python/m5/debug.py')
-rw-r--r-- | src/python/m5/debug.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/python/m5/debug.py b/src/python/m5/debug.py index 839c32d98..f7e34a728 100644 --- a/src/python/m5/debug.py +++ b/src/python/m5/debug.py @@ -26,6 +26,8 @@ # # Authors: Nathan Binkert +from __future__ import print_function + from UserDict import DictMixin import _m5.debug @@ -34,25 +36,25 @@ from _m5.debug import schedBreak, setRemoteGDBPort from m5.util import printList def help(): - print "Base Flags:" + print("Base Flags:") for name in sorted(flags): if name == 'All': continue flag = flags[name] children = [c for c in flag.kids() ] if not children: - print " %s: %s" % (name, flag.desc()) - print - print "Compound Flags:" + print(" %s: %s" % (name, flag.desc())) + print() + print("Compound Flags:") for name in sorted(flags): if name == 'All': continue flag = flags[name] children = [c for c in flag.kids() ] if children: - print " %s: %s" % (name, flag.desc()) + print(" %s: %s" % (name, flag.desc())) printList([ c.name() for c in children ], indent=8) - print + print() class AllFlags(DictMixin): def __init__(self): |