lib: printf code %pUs for GUID text representation
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 16 Jan 2022 10:59:21 +0000 (11:59 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 19 Jan 2022 15:16:33 +0000 (16:16 +0100)
commit04872381206a05d9b9d8211067e59b353d2929fb
tree820533c8ef0484cb13ca849cde13dd90e0536ccb
parentc1528f324c6068936a629233b12c66774accc359
lib: printf code %pUs for GUID text representation

In different places text representations are used for GUIDs, e.g.

* command efidebug
* command part list for GPT partitions

To allow reducing code duplication introduce a new printf code %pUs.
It will call uuid_guid_get_str() to get a text representation. If none is
found it will fallback to %pUl and print a hexadecimal representation.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/vsprintf.c