summaryrefslogtreecommitdiff
path: root/board/atlas
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2019-10-25 02:40:51 -0700
committerCommit Bot <commit-bot@chromium.org>2019-11-01 03:02:59 +0000
commit7dece1affb2b8bcaa449743937c55774a0aa2ee0 (patch)
treea3d47aa3aef4427dab6a67ac517d5d51a95de965 /board/atlas
parentadc5678d1979b4f2bd52a5d70b5f0a08cefad8f9 (diff)
downloadchrome-ec-7dece1affb2b8bcaa449743937c55774a0aa2ee0.tar.gz
atlas: fix charger selection messages
this corrects the printed text and switches from CPRINTF to CPRINTS for time stamping. BRANCH=none BUG=none TEST=buildall passes Change-Id: I4647ef4348a44d3eb433afa96ad04f2483899bc0 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1886034 Commit-Queue: Sean Abraham <seanabraham@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/atlas')
-rw-r--r--board/atlas/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c
index 0631d1484e..a7f3e41dc8 100644
--- a/board/atlas/board.c
+++ b/board/atlas/board.c
@@ -488,11 +488,11 @@ int board_set_active_charge_port(int charge_port)
GPIO_USB_C0_5V_EN : GPIO_USB_C1_5V_EN);
if (is_real_port && is_source) {
- CPRINTF("No charging on source port p%d is ", charge_port);
+ CPRINTS("No charging from p%d", charge_port);
return EC_ERROR_INVAL;
}
- CPRINTF("New chg p%d", charge_port);
+ CPRINTS("New chg p%d", charge_port);
if (charge_port == CHARGE_PORT_NONE) {
/* Disable both ports */