]> git.baikalelectronics.ru Git - uboot.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)
commit02e2798b3188c87910e6843a827af9fb3d578ee5
treecd525af0147f9398958a86c7d426b3192c0a0360
parent63ab2289467702bfa6f2f51ba3a95b621354d50d
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