scripts: Add Python 3 support to tracing/draw_functrace.py
authorJeremy Cline <jcline@redhat.com>
Sat, 28 Jul 2018 14:48:33 +0000 (10:48 -0400)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 29 Jul 2018 02:08:38 +0000 (11:08 +0900)
Use the print function. This maintains Python 2 support and should have
no functional change.

Signed-off-by: Jeremy Cline <jcline@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/tracing/draw_functrace.py

index db40fa04cd513f4a68d86af935fec02f27e507d2..9b6dd4f36335b352e89d181f21e0ece522765813 100755 (executable)
@@ -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()