x86: spl: Print the error on SPL failure
authorSimon Glass <sjg@chromium.org>
Wed, 27 May 2020 12:58:48 +0000 (06:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 2 Jun 2020 01:16:13 +0000 (09:16 +0800)
commitd7413deaddfc247a0d911fcfdcccba412e3661ed
tree57fdce13834d30219a0a175c0de86110b8fd6d53
parent609b90a6a9c0da42c4e52cd519bfd546367fa880
x86: spl: Print the error on SPL failure

The error code is often useful to figure out what is going on. Printing it
does not increase code size much, so print out the error and then hang.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/spl.c