diff options
author | Karl Palsson <karlp@etactica.com> | 2021-09-20 11:29:06 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2022-01-26 23:40:29 +0100 |
commit | 760a7f3526450e94409cbcb6a749070b0e879fce (patch) | |
tree | b490cbd7f386f585cc6fde3d8d6d5a0eee3eb38d /gdb_plugins | |
parent | 1b5215b679d541f0902ad1d39f0ceb6c36250401 (diff) |
gdb/rblog: fix python3 compatibility
At least use print as a function so it can be imported without breaking
Signed-off-by: Karl Palsson <karlp@etactica.com>
Diffstat (limited to 'gdb_plugins')
-rw-r--r-- | gdb_plugins/rblog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb_plugins/rblog.py b/gdb_plugins/rblog.py index c058db9..e57aefa 100644 --- a/gdb_plugins/rblog.py +++ b/gdb_plugins/rblog.py @@ -5,7 +5,7 @@ class RBlog(gdb.Command): def invoke(self, arg, from_tty): args = gdb.string_to_argv(arg) if len(args) != 1: - print 'Usage: rblog <object>' + print('Usage: rblog <object>') return rblog = gdb.parse_and_eval(args[0]) @@ -32,6 +32,6 @@ class RBlog(gdb.Command): except: pass - print '%8d %-80s %s' % (timestamp, string, ' '.join('%08x' % a for a in arguments)) + print('%8d %-80s %s' % (timestamp, string, ' '.join('%08x' % a for a in arguments))) RBlog() |