diff options
author | Scott Wood <scottwood@freescale.com> | 2014-04-07 23:49:35 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-07 23:49:35 (GMT) |
commit | 62b8c978ee6b8d135d9e7953221de58000dba986 (patch) | |
tree | 683b04b2e627f6710c22c151b23c8cc9a165315e /scripts/show_delta | |
parent | 78fd82238d0e5716578c326404184a27ba67fd6e (diff) | |
download | linux-fsl-qoriq-62b8c978ee6b8d135d9e7953221de58000dba986.tar.xz |
Rewind v3.13-rc3+ (78fd82238d0e5716) to v3.12
Diffstat (limited to 'scripts/show_delta')
-rwxr-xr-x | scripts/show_delta | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/show_delta b/scripts/show_delta index e25732b..17df305 100755 --- a/scripts/show_delta +++ b/scripts/show_delta @@ -13,7 +13,7 @@ import sys import string def usage(): - print ("""usage: show_delta [<options>] <filename> + print """usage: show_delta [<options>] <filename> This program parses the output from a set of printk message lines which have time data prefixed because the CONFIG_PRINTK_TIME option is set, or @@ -35,7 +35,7 @@ ex: $ dmesg >timefile will show times relative to the line in the kernel output starting with "NET4". -""") +""" sys.exit(1) # returns a tuple containing the seconds and text for each message line @@ -94,11 +94,11 @@ def main(): try: lines = open(filein,"r").readlines() except: - print ("Problem opening file: %s" % filein) + print "Problem opening file: %s" % filein sys.exit(1) if base_str: - print ('base= "%s"' % base_str) + print 'base= "%s"' % base_str # assume a numeric base. If that fails, try searching # for a matching line. try: @@ -117,13 +117,13 @@ def main(): # stop at first match break if not found: - print ('Couldn\'t find line matching base pattern "%s"' % base_str) + print 'Couldn\'t find line matching base pattern "%s"' % base_str sys.exit(1) else: base_time = 0.0 for line in lines: - print (convert_line(line, base_time),) + print convert_line(line, base_time), main() |