diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-01-25 09:27:21 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-25 10:50:58 -0800 |
commit | 09fca7bddbc4785c5f0d5f4590cdf9d09b3d5471 (patch) | |
tree | a686bdb103d3e1d38a3afacbeece26119597bd5f /common/flash.c | |
parent | 5f67f2cd7b55d941c54b3312c4476f44ba20b40e (diff) | |
download | chrome-ec-09fca7bddbc4785c5f0d5f4590cdf9d09b3d5471.tar.gz |
flash: Fix ccprintf parameters in flasherase/write
Both these functions had a superfluous offset parameter.
BRANCH=none
BUG=chrome-os-partner:61671
TEST=flasherase/write
Change-Id: I2973490e472c2e658440b56a0b76ec9f2aab749a
Reviewed-on: https://chromium-review.googlesource.com/432176
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/flash.c')
-rw-r--r-- | common/flash.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/flash.c b/common/flash.c index 05489b7b57..9c56864365 100644 --- a/common/flash.c +++ b/common/flash.c @@ -723,7 +723,7 @@ static int command_flash_erase(int argc, char **argv) if (rv) return rv; - ccprintf("Erasing %d bytes at 0x%x...\n", size, offset, offset); + ccprintf("Erasing %d bytes at 0x%x...\n", size, offset); return flash_erase(offset, size); } DECLARE_CONSOLE_COMMAND(flasherase, command_flash_erase, @@ -759,8 +759,7 @@ static int command_flash_write(int argc, char **argv) for (i = 0; i < size; i++) data[i] = i; - ccprintf("Writing %d bytes to 0x%x...\n", - size, offset, offset); + ccprintf("Writing %d bytes to 0x%x...\n", size, offset); rv = flash_write(offset, size, data); /* Free the buffer */ |