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 /include/uart.h | |
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 'include/uart.h')
-rw-r--r-- | include/uart.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/uart.h b/include/uart.h index dc64d9ad6f..3ca34c67f1 100644 --- a/include/uart.h +++ b/include/uart.h @@ -41,16 +41,20 @@ int uart_puts(const char *outstr); * * Returns error if output was truncated. * - * Must support format strings for: + * Supports the following format strings: * char (%c) * string (%s) * native int (signed/unsigned) (%d / %u / %x) * int32_t / uint32_t (%d / %x) - * int64_t / uint64_t (%ld / %lu / %lx) * pointer (%p) + * And the following special format codes: + * current time in us (%T) * including padding (%-5s, %8d, %08x) * - * Note: Floating point output (%f / %g) is not required. + * Support planned for: + * int64_t / uint64_t (%ld / %lu / %lx) + * + * Note: Floating point output (%f / %g) is not supported. */ int uart_printf(const char *format, ...); |