summaryrefslogtreecommitdiff
path: root/include/console.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-06-06 12:16:11 -0700
committerGerrit <chrome-bot@google.com>2012-06-07 00:54:02 -0700
commitc7f2e0246e8129aa179b09c5042d0265266e3a17 (patch)
tree62a7e81c5119b9a8f09078dc85078a3396a005b8 /include/console.h
parent3073c600786c6170cb3ff4d05ebc917f154c4ec1 (diff)
downloadchrome-ec-c7f2e0246e8129aa179b09c5042d0265266e3a17.tar.gz
Move printf() formatting to its own file to enable re-use
Also add snprintf(), and %X format code. BUG=chrome-os-partner:10206 TEST=timerinfo; should print correctly. 'ectool battery' on host side should print same serial as 'battery' on EC console. Change-Id: I5c9f69d1a20ee5d0a59440c122655adbf62c9aea Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/24635 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/console.h b/include/console.h
index f0d131249d..37d44bfc55 100644
--- a/include/console.h
+++ b/include/console.h
@@ -63,8 +63,9 @@ enum console_channel {
/* Put a string to the console channel. */
int cputs(enum console_channel channel, const char *outstr);
-/* Print formatted output to the console channel. See uart_vprintf() for
- * valid format codes. */
+/* Print formatted output to the console channel.
+ *
+ * See printf.h for valid formatting codes. */
int cprintf(enum console_channel channel, const char *format, ...);
/* Flush the console output for all channels. */