]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Fix integer format specifiers
authorJan Janssen <medhefgo@web.de>
Wed, 16 Feb 2022 11:28:20 +0000 (12:28 +0100)
committerJan Janssen <medhefgo@web.de>
Wed, 13 Apr 2022 21:06:26 +0000 (23:06 +0200)
commitec4106afa0672f12f2a79cd4619767c07985e1d8
tree358898a7275333cf84bfba79f7f2682e8bf23edd
parent4bcf5c11c8a951f9feef2964a721cc245b753873
boot: Fix integer format specifiers

gnu-efi only knows two sizes for formatting integers: 32bit without
a length prefix and 64bit with 'l' prefix. Provide a PRI-style format
specifier for (U)INTN so that Print() can read the right amount of
bytes instead of printing garbage or worse.
src/boot/efi/boot.c
src/boot/efi/drivers.c
src/boot/efi/stub.c
src/boot/efi/util.c
src/boot/efi/util.h