summaryrefslogtreecommitdiff
path: root/scripts/show_delta
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/show_delta')
-rwxr-xr-xscripts/show_delta7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/show_delta b/scripts/show_delta
index 5b365009e6a3..3755b6c6e557 100755
--- a/scripts/show_delta
+++ b/scripts/show_delta
@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
+# SPDX-License-Identifier: GPL-2.0-only
#
# show_deltas: Read list of printk messages instrumented with
# time data, and format with time deltas.
@@ -7,7 +8,6 @@
#
# Copyright 2003 Sony Corporation
#
-# GPL 2.0 applies.
import sys
import string
@@ -125,4 +125,5 @@ def main():
for line in lines:
print (convert_line(line, base_time),)
-main()
+if __name__ == "__main__":
+ main()