diff options
author | Bill Richardson <wfrichar@chromium.org> | 2010-11-29 14:24:51 -0800 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2010-11-29 14:24:51 -0800 |
commit | 3430b32667937a75c7a3afc83f8f7a601a8187f7 (patch) | |
tree | af0492bff6b8493080d0ae959baa015434c3e3a7 /cgpt/cmd_find.c | |
parent | 5f500b19ba0cdc174a47a68e40f939a4ed69861c (diff) | |
download | vboot-3430b32667937a75c7a3afc83f8f7a601a8187f7.tar.gz |
Add 'prioritize' command to cgpt tool.
This lets us reorder the priority of all the kernel partitions with a single
command, instead of a bunch of complicated and error-prone shell script
logic.
Change-Id: I21d39763ec5a748488d5319a987bcfe7c34ce4d0
BUG=chromium-os:9167
TEST=manual
In the chroot, do this:
cd ~/trunk/src/platform/vboot_reference
make
make runtests
make clean
Everything should pass.
Review URL: http://codereview.chromium.org/5352005
Diffstat (limited to 'cgpt/cmd_find.c')
-rw-r--r-- | cgpt/cmd_find.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cgpt/cmd_find.c b/cgpt/cmd_find.c index 055777e3..896119a7 100644 --- a/cgpt/cmd_find.c +++ b/cgpt/cmd_find.c @@ -177,8 +177,8 @@ static int do_search(char *filename) { continue; int found = 0; - if ((set_unique && !memcmp(&unique_guid, &entry->unique, sizeof(Guid))) || - (set_type && !memcmp(&type_guid, &entry->type, sizeof(Guid)))) { + if ((set_unique && GuidEqual(&unique_guid, &entry->unique)) || + (set_type && GuidEqual(&type_guid, &entry->type))) { found = 1; } else if (set_label) { if (CGPT_OK != UTF16ToUTF8(entry->name, |