aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-12-05 13:44:39 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-12-05 13:44:39 -0500
commita53ab0076d93ec5989f71d854d27cb73571b80a2 (patch)
treedbe9cf4b655ca7c867eff9977e9ff793a7850664 /tools
parent525219b764a2737114d157164bc600d3fc5fddf2 (diff)
downloadseabios-a53ab0076d93ec5989f71d854d27cb73571b80a2.tar.gz
Enhance readserial.py to note when resetting timer.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/readserial.py6
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