From: Jeremy Cline Date: Sat, 28 Jul 2018 14:48:33 +0000 (-0400) Subject: scripts: Add Python 3 support to tracing/draw_functrace.py X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ddc7c5721ae3554727f3e25e5c7510e278caf6be;p=linux.git scripts: Add Python 3 support to tracing/draw_functrace.py Use the print function. This maintains Python 2 support and should have no functional change. Signed-off-by: Jeremy Cline Signed-off-by: Masahiro Yamada --- diff --git a/scripts/tracing/draw_functrace.py b/scripts/tracing/draw_functrace.py index db40fa04cd513..9b6dd4f36335b 100755 --- a/scripts/tracing/draw_functrace.py +++ b/scripts/tracing/draw_functrace.py @@ -123,7 +123,7 @@ def main(): tree = tree.getParent(caller) tree = tree.calls(callee, calltime) - print CallTree.ROOT + print(CallTree.ROOT) if __name__ == "__main__": main()