sd-boot: Unify error handling
authorJan Janssen <medhefgo@web.de>
Wed, 11 Aug 2021 12:59:46 +0000 (14:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Nov 2021 07:24:26 +0000 (08:24 +0100)
commit6a6e5ac839ac46896f3c4a9b903755758c626955
tree2c51f84f943197d4595a1f215df15173f93eae7d
parent1b82c0a3093a0602315aff97bc73e126ac1582ff
sd-boot: Unify error handling

log_error_stall() and log_error_status_stall() will ensure the user has
a chance to catch an error message by stalling and also forcing a
lightred/black color on it. Also, convert several Print() calls to it
since they are actually error messages.

(cherry picked from commit 8aba0eec499b762657f528988c2f093ac490620d)
src/boot/efi/boot.c
src/boot/efi/random-seed.c
src/boot/efi/stub.c
src/boot/efi/util.c
src/boot/efi/util.h