diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-04-03 11:29:41 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-04-03 11:35:47 -0700 |
commit | 95462ad4fed6839f0b672d4fdef08d09265e3585 (patch) | |
tree | e2d44d80fbda4731018ff25b3c3b24712ad7c348 /common/port80.c | |
parent | ed33516e2e7414abf84b62d4426e4b4c61ff7892 (diff) | |
download | chrome-ec-95462ad4fed6839f0b672d4fdef08d09265e3585.tar.gz |
Add %T format code to print current timestamp.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:8724
TEST=if timestamps show up in the debug output, it works
Change-Id: I5264a3a40a07a824cc15b39a7bd81f2db02a3c13
Diffstat (limited to 'common/port80.c')
-rw-r--r-- | common/port80.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/port80.c b/common/port80.c index 331ea23a48..9e6ba40c1f 100644 --- a/common/port80.c +++ b/common/port80.c @@ -24,7 +24,7 @@ void port_80_write(int data) * itself. Probably not worth the system overhead to buffer the data * and print it from a task, because we're printing a small amount of * data and uart_printf() doesn't block. */ - uart_printf("%c[Port 80: 0x%02x]", scroll ? '\n' : '\r', data); + uart_printf("%c[%T Port 80: 0x%02x]", scroll ? '\n' : '\r', data); history[head] = data; head = (head + 1) & (HISTORY_LEN - 1); |