summaryrefslogtreecommitdiff
path: root/common/vboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/vboot.c')
-rw-r--r--common/vboot.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/common/vboot.c b/common/vboot.c
index 727a92ef4b..b96765b97b 100644
--- a/common/vboot.c
+++ b/common/vboot.c
@@ -5,13 +5,17 @@
/* Verified boot module for Chrome EC */
+#include "console.h"
#include "gpio.h"
#include "keyboard_scan.h"
#include "system.h"
-#include "uart.h"
#include "util.h"
#include "vboot.h"
+/* Console output macros */
+#define CPUTS(outstr) cputs(CC_VBOOT, outstr)
+#define CPRINTF(format, args...) cprintf(CC_VBOOT, format, ## args)
+
/* Jumps to one of the RW images if necessary. */
static void jump_to_other_image(void)
@@ -23,7 +27,7 @@ static void jump_to_other_image(void)
#ifdef CONFIG_TASK_KEYSCAN
/* Don't jump if recovery requested */
if (keyboard_scan_recovery_pressed()) {
- uart_puts("Vboot staying in RO because key pressed.\n");
+ CPUTS("[Vboot staying in RO because key pressed]\n");
return;
}
#endif
@@ -37,7 +41,7 @@ static void jump_to_other_image(void)
/* TODO: (crosbug.com/p/8572) Daisy and discovery don't define a GPIO
* for the recovery signal from servo, so can't check it. */
if (gpio_get_level(GPIO_RECOVERYn) == 0) {
- uart_puts("Vboot staying in RO due to recovery signal.\n");
+ CPUTS("[Vboot staying in RO due to recovery signal]\n");
return;
}
#endif