From 135f14bf498ab19b6e75efc3a0d18ef7c8a8752d Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 24 Apr 2012 16:29:28 -0700 Subject: Refactor async console output This adds a 'ch' command which prints/sets which channels are active This handles all the async output; the remaining debug commands will be refactored to use ccprintf() / ccputs() in a followup CL. Signed-off-by: Randall Spangler BUG=chrome-os-partner:7464 TEST=manual ch --> all channels active ch 0x100 -> just port80 active powerbtn -> system boots; only port 80 codes shown on console Change-Id: I9efc43acec919b62b78c2c82c61946d32380adfe --- include/uart.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/uart.h') diff --git a/include/uart.h b/include/uart.h index 67a2968d6c..17922879bc 100644 --- a/include/uart.h +++ b/include/uart.h @@ -8,6 +8,7 @@ #ifndef __CROS_EC_UART_H #define __CROS_EC_UART_H +#include /* For va_list */ #include "common.h" @@ -55,6 +56,10 @@ int uart_puts(const char *outstr); * Floating point output (%f / %g) is not supported. */ int uart_printf(const char *format, ...); +/* Print formatted output to the UART, like vprintf(). Supports the same + * formatting codes as uart_printf(). */ +int uart_vprintf(const char *format, va_list args); + /* Flushes output. Blocks until UART has transmitted all output. */ void uart_flush_output(void); -- cgit v1.2.1