commit | c7ea52cef253e90d68e83f84fb1c84a2125915b8 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sun Jan 16 11:59:21 2022 +0100 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Wed Jan 19 16:16:33 2022 +0100 |
tree | 820533c8ef0484cb13ca849cde13dd90e0536ccb | |
parent | 0a13b79b2fea8bc24885cc2f04fbc7bf2683f0df [diff] |
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>