From 74e2f686a9acce51b1507367c29e39f504aaa34d Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Thu, 1 Feb 2018 09:32:40 -0700 Subject: [PATCH] cleanup: formatting debug message Adding newline to separate messages better BRANCH=none TEST=none BUG=none Change-Id: Ie454dfc532310c480f350c9b15280bf96634b322 Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/897909 Reviewed-by: Edward Hill --- chip/npcx/lpc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/chip/npcx/lpc.c b/chip/npcx/lpc.c index 7f909cae2b..5643474285 100644 --- a/chip/npcx/lpc.c +++ b/chip/npcx/lpc.c @@ -338,7 +338,7 @@ static void lpc_sib_wait_host_read_done(void) deadline.val = get_time().val + LPC_HOST_TRANSACTION_TIMEOUT_US; while (IS_BIT_SET(NPCX_SIBCTRL, NPCX_SIBCTRL_CSRD)) { if (timestamp_expired(deadline, NULL)) { - ccprintf("Unexpected time of host read transaction\n"); + CPRINTS("Unexpected time of host read transaction"); break; } } @@ -354,7 +354,7 @@ static void lpc_sib_wait_host_write_done(void) deadline.val = get_time().val + LPC_HOST_TRANSACTION_TIMEOUT_US; while (IS_BIT_SET(NPCX_SIBCTRL, NPCX_SIBCTRL_CSWR)) { if (timestamp_expired(deadline, NULL)) { - ccprintf("Unexpected time of host write transaction\n"); + CPRINTS("Unexpected time of host write transaction"); break; } } @@ -833,8 +833,7 @@ void lpc_lreset_pltrst_handler(void) pltrst_asserted = lpc_get_pltrst_asserted(); - ccprintf("LPC RESET# %sasserted", - pltrst_asserted ? "" : "de"); + CPRINTS("LPC RESET# %sasserted", pltrst_asserted ? "" : "de"); /* * Once LRESET is de-asserted (low -> high), we need to initialize lpc