diff options
author | Evan Green <evgreen@chromium.org> | 2019-09-23 13:19:18 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-05 00:47:52 +0000 |
commit | 7200037dfc674977bffc3d58a15547d97f3ef681 (patch) | |
tree | e9b7630db4f17ec7bf6fbaf01322a05ff0ee6419 /common/system.c | |
parent | 2eade31e87a7662dc03dcead556917dfa13d0983 (diff) | |
download | chrome-ec-7200037dfc674977bffc3d58a15547d97f3ef681.tar.gz |
printf: Fix formatting errors
This change fixes the printf formatting errors found by the
compile-time prinf format checker. The errors fall into a few
categories:
1. Incorrect size specifier (missing or extra l).
2. Missing or extra arguments.
3. Bad line splitting.
BUG=chromium:984041
TEST=make -j buildall
BRANCH=none
Change-Id: I5618097a581210b9fcbfc81560dec050ae30b61c
Signed-off-by: Evan Green <evgreen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1819653
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'common/system.c')
-rw-r--r-- | common/system.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/system.c b/common/system.c index 074ae24af7..7b8b164ea5 100644 --- a/common/system.c +++ b/common/system.c @@ -365,8 +365,9 @@ void system_disable_jump(void) */ ret = mpu_protect_data_ram(); if (ret == EC_SUCCESS) { - CPRINTS("data RAM locked. Exclusion %08x-%08x", - &__iram_text_start, &__iram_text_end); + CPRINTS("data RAM locked. Exclusion %08lx-%08lx", + (unsigned long)&__iram_text_start, + (unsigned long)&__iram_text_end); } else { CPRINTS("Failed to lock data RAM (%d)", ret); return; |