From b3a99aa3f7d4c9c34363a4bc905fd07e22bb27b8 Mon Sep 17 00:00:00 2001 From: Namyoon Woo Date: Tue, 10 Mar 2020 13:18:35 -0700 Subject: minor cleanup on EC-EFS2 implementation usart.h doesn't need to be included in ec_comm.c. This patch also fixes nit output format in cprints. BUG=none BRANCH=cr50 TEST=make run-ec_comm Signed-off-by: Namyoon Woo Change-Id: Icadf0d860cee8d3cf882cdb4571aaa2bc325adf9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2094751 Reviewed-by: Vadim Bendebury --- common/ec_comm.c | 1 - common/ec_efs.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/ec_comm.c b/common/ec_comm.c index c2e7bdb26d..e24c2af94c 100644 --- a/common/ec_comm.c +++ b/common/ec_comm.c @@ -14,7 +14,6 @@ #include "task.h" #include "timer.h" #include "uartn.h" -#include "usart.h" #include "vboot.h" #define CPRINTS(format, args...) cprints(CC_TASK, "EC-COMM: " format, ## args) diff --git a/common/ec_efs.c b/common/ec_efs.c index f801696338..b61ed87888 100644 --- a/common/ec_efs.c +++ b/common/ec_efs.c @@ -262,7 +262,7 @@ void ec_efs_refresh(void) ec_efs_ctx.hash_is_loaded = 1; } else { ec_efs_ctx.hash_is_loaded = 0; - cprints(CC_SYSTEM, "load_ec_hash error: 0x%x\n", rv); + cprints(CC_SYSTEM, "load_ec_hash error: 0x%x", rv); } ec_efs_ctx.secdata_error_code = rv; } -- cgit v1.2.1