mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-16 18:11:22 +00:00
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>
This commit is contained in:
committed by
chrome-bot
parent
5f67f2cd7b
commit
09fca7bddb
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user