浏览代码

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 <jcline@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Jeremy Cline 7 年之前
父节点
当前提交
ddc7c5721a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/tracing/draw_functrace.py

+ 1 - 1
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()