zephyr: clear a few compiler warnings

BUG=b:174871569
BRANCH=none
TEST=compile, observe less warnings

Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Id45ebc740344ec9261e28454a966e22a1cd6f629
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2591788
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
This commit is contained in:
Jack Rosenthal 2020-12-14 17:24:55 -07:00 committed by Commit Bot
parent 76b6c1082a
commit 88530597d9
2 changed files with 2 additions and 1 deletions

View File

@ -434,7 +434,7 @@ static void dump_flash(void)
static void print_tag(const char * const tag, int rv, const uint32_t *val)
{
ccprintf(tag);
ccprintf("%s", tag);
if (rv == EC_SUCCESS && val)
ccprintf(": %u (0x%x)\n", *val, *val);
else

View File

@ -16,6 +16,7 @@
#include "espi.h"
#include "lpc.h"
#include "port80.h"
#include "power.h"
#include "zephyr_espi_shim.h"
LOG_MODULE_REGISTER(espi_shim, CONFIG_ESPI_LOG_LEVEL);