diff options
author | Naresh G Solanki <naresh.solanki@intel.com> | 2016-03-16 14:08:28 +0530 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-03-30 17:10:17 -0700 |
commit | 06ea3b5b008206085b91b728f6fa61cc5edd7e28 (patch) | |
tree | 6fb0fe78740f732f06916581b2e9574c899d824a /common/spi_flash.c | |
parent | 4377df7b5b6c10c3ff0ab593fc2e0e419f3c3ff5 (diff) | |
download | chrome-ec-06ea3b5b008206085b91b728f6fa61cc5edd7e28.tar.gz |
spi_flash: print spi flash size in proper unit
Spi flash size is calculated in the units of kB
but is printed as MB. correcting it to kB unit.
Change-Id: If71681fc868a5974b44d135055c01f9184c71602
Signed-off-by: Naresh G Solanki <naresh.solanki@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/332732
Commit-Ready: Naresh Solanki <naresh.solanki@intel.com>
Tested-by: Naresh Solanki <naresh.solanki@intel.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Divya Jyothi <divya.jyothi@intel.com>
Diffstat (limited to 'common/spi_flash.c')
-rw-r--r-- | common/spi_flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spi_flash.c b/common/spi_flash.c index c19253f518..860f799d37 100644 --- a/common/spi_flash.c +++ b/common/spi_flash.c @@ -483,7 +483,7 @@ static int command_spi_flashinfo(int argc, char **argv) ((uint8_t *)&unique)[2], ((uint8_t *)&unique)[3], ((uint8_t *)&unique)[4], ((uint8_t *)&unique)[5], ((uint8_t *)&unique)[6], ((uint8_t *)&unique)[7]); - ccprintf("Capacity: %4d MB\n", + ccprintf("Capacity: %4d kB\n", SPI_FLASH_SIZE(((uint8_t *)&jedec)[2]) / 1024); return rv; |