lib/uuid.c: use unique name for PARTITION_SYSTEM_GUID
authorJerome Forissier <jerome.forissier@linaro.org>
Wed, 16 Apr 2025 07:48:20 +0000 (09:48 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 22 Apr 2025 18:54:32 +0000 (12:54 -0600)
commitd54e1004b8b171d18ad216a817018bb7aea6ec60
tree117e448e0ac8c800c5916061dd3cc0dcfd034424
parent8c98b57d72d5e5b94ed064fe1041e51216165334
lib/uuid.c: use unique name for PARTITION_SYSTEM_GUID

The name defined for PARTITION_SYSTEM_GUID in list_guid[] depends on
configuration options. It is "system" if CONFIG_PARTITION_TYPE_GUID is
enabled or "System Partition" if CONFIG_CMD_EFIDEBUG or CONFIG_EFI are
enabled. In addition, the unit test in test/common/print.c is incorrect
because it expects only "system" (or a hex GUID).

Make things more consistent by using a clear and unique name: "EFI
System Partition" whatever the configuration, and update the unit test
accordingly.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/uuid.c
test/common/print.c