Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Unified Diff: cgpt/cmd_show.c

Issue 5352005: Add 'prioritize' command to cgpt tool. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cgpt/cmd_prioritize.c ('k') | firmware/lib/cgptlib/cgptlib.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « cgpt/cmd_prioritize.c ('k') | firmware/lib/cgptlib/cgptlib.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698