From 09fca7bddbc4785c5f0d5f4590cdf9d09b3d5471 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Wed, 25 Jan 2017 09:27:21 +0800 Subject: [PATCH] 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 Tested-by: Nicolas Boichat Reviewed-by: Vincent Palatin --- common/flash.c | 5 ++--- 1 file 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 */