diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-12-05 13:44:39 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-12-05 13:44:39 -0500 |
commit | a53ab0076d93ec5989f71d854d27cb73571b80a2 (patch) | |
tree | dbe9cf4b655ca7c867eff9977e9ff793a7850664 /tools | |
parent | 525219b764a2737114d157164bc600d3fc5fddf2 (diff) | |
download | seabios-a53ab0076d93ec5989f71d854d27cb73571b80a2.tar.gz |
Enhance readserial.py to note when resetting timer.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/readserial.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/readserial.py b/tools/readserial.py index 4524ca83..fec2811a 100755 --- a/tools/readserial.py +++ b/tools/readserial.py @@ -42,8 +42,10 @@ def readserial(infile, logfile, baudrate): starttime = curtime charcount = 0 isnewline = 1 - sys.stdout.write("\n") - logfile.write("\n") + msg = "\n\n======= %s (adjust=%d)\n" % ( + time.asctime(time.localtime(curtime)), ADJUSTBAUD) + sys.stdout.write(msg) + logfile.write(msg) lasttime = curtime # Translate unprintable chars; add timestamps |