]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit7862ff3c2022fd8328660c4430d31d7b6bbfb20f
tree820533c8ef0484cb13ca849cde13dd90e0536ccb
parentfe5888158bdf36387cc62036b1375405a1833c86
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