Use print function for Python 3 compatibility (#1748)
and add `from __future__ import print_function` where needed for Python3
print semantics in Python2
diff --git a/examples/tracing/vfsreadlat.py b/examples/tracing/vfsreadlat.py
index bd16dd5..b2c4156 100755
--- a/examples/tracing/vfsreadlat.py
+++ b/examples/tracing/vfsreadlat.py
@@ -15,6 +15,7 @@
#
# 15-Aug-2015 Brendan Gregg Created this.
+from __future__ import print_function
from bcc import BPF
from ctypes import c_ushort, c_int, c_ulonglong
from time import sleep
@@ -58,7 +59,7 @@
except KeyboardInterrupt:
pass; do_exit = 1
- print
+ print()
b["dist"].print_log2_hist("usecs")
b["dist"].clear()
if do_exit: