]> git.ipfire.org Git - thirdparty/grub.git/commit
kern: Add %X option to printf functions
authorPaulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Wed, 22 Jan 2020 11:01:52 +0000 (12:01 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Feb 2020 14:12:06 +0000 (15:12 +0100)
commit8c2c35dcc027a77aee48de89093d8770de0a8cf8
tree2885b6774cdbf40892943959d0567f919b44ca87
parentaa096037ae013c553acf52f9e3aa3a49c91f3c57
kern: Add %X option to printf functions

The printf(3) function has support for the %X format specifier, to output
an unsigned hexadecimal integer in uppercase.

This can be achived in GRUB using the %x format specifier in grub_printf()
and calling grub_toupper(), but it is more convenient if there is support
for %X in grub_printf().

Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/misc.c