diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-06-21 15:25:19 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-21 08:14:28 -0700 |
commit | 300d9537615249c541d7cba287da919c6c774547 (patch) | |
tree | 118985a3f69ae18ab517e77fe89ed3a62a97fd98 | |
parent | 161501e092f9509aba66a1bd0217ef6661314dfe (diff) | |
download | chrome-ec-300d9537615249c541d7cba287da919c6c774547.tar.gz |
chip/host/system: Fix parameter to scanf
value is an integer, so we should use %u, not %lu.
BRANCH=none
BUG=chromium:854924
TEST=make CC=clang run-flash -j (issue only shows up with clang)
Change-Id: Ifc13792dfed548f897c451790c73ad47aa8496ba
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1109660
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | chip/host/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/host/system.c b/chip/host/system.c index 3820048fad..69ed1c83a1 100644 --- a/chip/host/system.c +++ b/chip/host/system.c @@ -222,7 +222,7 @@ uint32_t system_get_scratchpad(void) if (f == NULL) return 0; - success = fscanf(f, "%lu", &value); + success = fscanf(f, "%u", &value); release_persistent_storage(f); if (success) |