summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames_chao <james_chao@asus.com>2015-11-10 12:42:01 +0800
committerChromeOS bot <3su6n15k.default@developer.gserviceaccount.com>2015-11-10 18:58:16 +0000
commit56c7b1f62546e41d33382c92072fb959a672e76e (patch)
tree086a8ab4b6011eff4381a289a78ab147f6d74d50
parent2cba4fb865edf2f91810dff39e776bea6f4f8ecf (diff)
downloadchrome-ec-56c7b1f62546e41d33382c92072fb959a672e76e.tar.gz
Common: spi_flash: fix the capacity unit.
The unit of capacity should be "KB", not "MB" BUG=None BRANCH=firmware-strago-7287.B TEST=Use the uart command spi_flashinfo and check capacity Change-Id: I08aa52df3e256fb75848b980ded97b146049ab66 Signed-off-by: james_chao <james_chao@asus.com> Reviewed-on: https://chromium-review.googlesource.com/311552 Reviewed-by: Shawn N <shawnn@chromium.org>
-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 417f97dfd1..355723034b 100644
--- a/common/spi_flash.c
+++ b/common/spi_flash.c
@@ -477,7 +477,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;