]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: sf: Display errno on erase failure
authorSean Anderson <seanga2@gmail.com>
Fri, 5 Feb 2021 04:11:06 +0000 (23:11 -0500)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 26 Feb 2021 10:17:07 +0000 (15:47 +0530)
commit1bb8ca3b4b3debfa6b42f3430c81c00c3807cafe
treecd525af0147f9398958a86c7d426b3192c0a0360
parent90d76f812b29c88f47279eca034da70d30a798d9
cmd: sf: Display errno on erase failure

If there is an error while erasing SPI flash, no errno is displayed. This
makes it difficult to determine the cause of the error. This change mirrors
the logic for write errors above.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
cmd/sf.c