cmd: sf: Print error on test failure
authorSean Anderson <seanga2@gmail.com>
Fri, 5 Feb 2021 04:11:07 +0000 (23:11 -0500)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 26 Feb 2021 10:18:00 +0000 (15:48 +0530)
commit9bc772812d333c43a244cb15ddba0c919f4daccf
tree338d2bab8fb8d26a213d4a94aa9812571d892704
parent1bb8ca3b4b3debfa6b42f3430c81c00c3807cafe
cmd: sf: Print error on test failure

The sf test command is used to test spi flashes (and spi masters). Printing
the exact error code is very helpful to those debugging the spi stack.

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