summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh G Solanki <naresh.solanki@intel.com>2016-03-16 14:08:28 +0530
committerchrome-bot <chrome-bot@chromium.org>2016-03-30 17:10:17 -0700
commit06ea3b5b008206085b91b728f6fa61cc5edd7e28 (patch)
tree6fb0fe78740f732f06916581b2e9574c899d824a
parent4377df7b5b6c10c3ff0ab593fc2e0e419f3c3ff5 (diff)
downloadchrome-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>
-rw-r--r--common/spi_flash.c2
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;