From 760a7f3526450e94409cbcb6a749070b0e879fce Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 20 Sep 2021 09:29:06 +0000 Subject: gdb/rblog: fix python3 compatibility At least use print as a function so it can be imported without breaking Signed-off-by: Karl Palsson --- gdb_plugins/rblog.py | 4 ++-- 1 file 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 ' + print('Usage: rblog ') 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() -- cgit v1.2.3