Index: cgpt/cmd_show.c |
diff --git a/cgpt/cmd_show.c b/cgpt/cmd_show.c |
index 920a30fe6fe63843d8edaa672d5b562354983d07..4942251fa06f1bb9ff0cbdf68f6261f268ee955c 100644 |
--- a/cgpt/cmd_show.c |
+++ b/cgpt/cmd_show.c |
@@ -133,7 +133,7 @@ void EntryDetails(GptEntry *entry, uint32_t index, int raw) { |
} |
GuidToStr(&entry->unique, unique, GUID_STRLEN); |
printf(PARTITION_MORE, "UUID: ", unique); |
- if (!memcmp(&guid_chromeos_kernel, &entry->type, sizeof(Guid))) { |
+ if (GuidEqual(&guid_chromeos_kernel, &entry->type)) { |
int tries = (entry->attrs.fields.gpt_att & |
CGPT_ATTRIBUTE_TRIES_MASK) >> |
CGPT_ATTRIBUTE_TRIES_OFFSET; |
@@ -176,7 +176,8 @@ void EntriesDetails(GptData *gpt, const int secondary, int raw) { |
GptEntry *entry; |
entry = GetEntry(gpt, secondary, i); |
- if (!memcmp(&guid_unused, &entry->type, sizeof(Guid))) continue; |
+ if (IsZero(&entry->type)) |
+ continue; |
EntryDetails(entry, i, raw); |
} |