summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@chromium.org>2020-03-10 13:18:35 -0700
committerCommit Bot <commit-bot@chromium.org>2020-03-11 20:55:40 +0000
commitb3a99aa3f7d4c9c34363a4bc905fd07e22bb27b8 (patch)
treeeed251374407f40c2f8c3f53327edee09298fd8a
parent717f46db47b86e1c1d2d4698bad8dbe54a326d04 (diff)
downloadchrome-ec-b3a99aa3f7d4c9c34363a4bc905fd07e22bb27b8.tar.gz
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 <namyoon@chromium.org> Change-Id: Icadf0d860cee8d3cf882cdb4571aaa2bc325adf9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2094751 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--common/ec_comm.c1
-rw-r--r--common/ec_efs.c2
2 files changed, 1 insertions, 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;
}