Skip to content

Commit 7ab955e

Browse files
gromerostephanosio
authored andcommitted
tracing: scripts: Fix spelling
Fix the spelling of Babeltrace library in the warning message displayed when such a library can not be imported. Signed-off-by: Gustavo Romero <[email protected]>
1 parent 86af9bc commit 7ab955e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tracing/parse_ctf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
try:
2727
import bt2
2828
except ImportError:
29-
sys.exit("Missing dependency: You need to install python bindings of babletrace.")
29+
sys.exit("Missing dependency: You need to install python bindings of babeltrace.")
3030

3131
def parse_args():
3232
parser = argparse.ArgumentParser(
@@ -111,7 +111,7 @@ def get_thread(name):
111111
tin = th.get('in', None)
112112
tout = th.get('out', None)
113113
if tout is not None and tin is not None:
114-
diff = (tout - tin)
114+
diff = tout - tin
115115
th['runtime'] = diff
116116
elif event.name in ['thread_switched_in']:
117117
th['in'] = ns_from_origin

0 commit comments

Comments
 (0)