variable name typo
diff --git a/examples/bitehist.py b/examples/bitehist.py
index 47cde3b..0ae7c9c 100755
--- a/examples/bitehist.py
+++ b/examples/bitehist.py
@@ -28,4 +28,4 @@
except KeyboardInterrupt:
print
-b["dist"].print_log2_hist()
+b["dist"].print_log2_hist("kbytes")
diff --git a/examples/bitehist_example.txt b/examples/bitehist_example.txt
index a12e10f..1122131 100644
--- a/examples/bitehist_example.txt
+++ b/examples/bitehist_example.txt
@@ -6,7 +6,7 @@
# ./bitehist.py
Tracing... Hit Ctrl-C to end.
^C
- value : count distribution
+ kbytes : count distribution
0 -> 1 : 3 | |
2 -> 3 : 0 | |
4 -> 7 : 211 |********** |
diff --git a/tools/opensnoop b/tools/opensnoop
index 8b1a5be..3746b35 100755
--- a/tools/opensnoop
+++ b/tools/opensnoop
@@ -89,7 +89,7 @@
# format output
while 1:
(task, pid, cpu, flags, ts, msg) = b.trace_fields()
- (filenamp, ret_s) = msg.split(" ")
+ (filename, ret_s) = msg.split(" ")
ret = int(ret_s)
if (args.failed and (ret >= 0)):
@@ -106,4 +106,4 @@
if start_ts == 0:
start_ts = ts
print("%-14.9f" % (ts - start_ts), end="")
- print("%-6d %-16s %4s %3s %s" % (pid, task, fd_s, err, filenamp))
+ print("%-6d %-16s %4s %3s %s" % (pid, task, fd_s, err, filename))