efi_loader: printing UEFI revision in helloworld.efi
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 1 Sep 2022 20:23:47 +0000 (22:23 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 3 Sep 2022 06:16:09 +0000 (08:16 +0200)
commita641e36fdbf09a6db046e9afe7531e9c623e70d3
tree04c8876a998f4a8551b6afe9fb3fa7bff45b6cdb
parent67fe8cc0016756f3479288b3f67d59a517e512d5
efi_loader: printing UEFI revision in helloworld.efi

We need to support multiple digits in the parts of the UEFI verision
number. E.g.

    EFI_SPECIFICATION_VERSION = (123 << 16) | 456

must be printed as

    123.45.6

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/efi_loader/helloworld.c