Skip to content
Snippets Groups Projects
Commit 0e3fa01a authored by John Schmoller's avatar John Schmoller Committed by Stefan Roese
Browse files

cfi_flash: Fix "Unknown FLASH" error message


When a CFI flash chip could not be detected an error message similar to
the following would be printed on bootup:

 FLASH: ## Unknown FLASH on Bank 1 - Size = 0x01000000 = 0 MB

The printf incorrectly converted the flash size into megabytes.  This
patch fixes the printing of the flash size in megabytes:

 FLASH: ## Unknown FLASH on Bank 1 - Size = 0x01000000 = 16 MB

Signed-off-by: default avatarJohn Schmoller <jschmoller@xes-inc.com>
Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent bfc7bea6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment