]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: gpt: use UUID accessor more consistently
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 2 Sep 2023 07:35:22 +0000 (09:35 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 11 Sep 2023 20:29:43 +0000 (16:29 -0400)
commit396f315520bcbcc2b710ab696326b239577c1ad2
tree557b61bce4a900db4fd84bf1c31d7ccd5ff601ff
parent782c7f1bdb0a25e1851a47ff1aba9f71162c2f9d
cmd: gpt: use UUID accessor more consistently

disk_partition_uuid() and disk_partition_set_uuid() were introduced to let
us avoid the usage of #ifdef when dealing with the field uuid of
struct disk_partition.

In allocate_disk_part() commit c5f1d005f517 ("part: Add accessors for
struct disk_partition uuid") missed to use the setter.

print_gpt_info() and create_gpt_partitions_list() are further functions
where we should use the getter.

Fixes: c5f1d005f517 ("part: Add accessors for struct disk_partition uuid")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/gpt.c