]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/misc: Add a format specifier GUIDs
authorOliver Steffen <osteffen@redhat.com>
Fri, 26 May 2023 11:35:44 +0000 (13:35 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 1 Jun 2023 09:45:00 +0000 (11:45 +0200)
commitf82dbf2bd871e9cce327b511a393ffa543d7f69e
tree5eb11092d278107f6e9bf2a6d98baaab2a000584
parent06edd40db76bb78457ac26156ed5f7b62381bbe8
kern/misc: Add a format specifier GUIDs

Extend the printf format specifier for pointers (%p) to accept a suffix
specifier G to print GUIDs: %pG can be used to print grub_guid structs.
This does not interfere with the -Wformat checking of gcc. Note that
the data type is not checked though (%p accepts void *).

Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/misc.c