]> git.ipfire.org Git - thirdparty/grub.git/commit
loader/efi/linux: Print EFI status as hex number instead of uint
authorGlenn Washburn <development@efficientek.com>
Wed, 28 Jun 2023 06:19:48 +0000 (01:19 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 3 Jul 2023 11:29:28 +0000 (13:29 +0200)
commit64395c5ab27ae3258bed5ca71e0f78956b329326
tree681e0372b101bb2be15f4cc0ded162b39ba77be5
parent8fa86d2e29351dcbc05197da8ff9dd5723731a88
loader/efi/linux: Print EFI status as hex number instead of uint

EFI status codes are of different classes depending on the first byte and
all error status codes defined in appendix D of the main spec start from
1 and have the high bit set. When printing as a uint, the decimal is a very
large number that needs have the high bit cleared get the spec error code.
This can be easily visually done by a human if the number is printed as hex.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/efi/linux.c