From 3430b32667937a75c7a3afc83f8f7a601a8187f7 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Mon, 29 Nov 2010 14:24:51 -0800 Subject: 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 --- cgpt/cmd_find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgpt/cmd_find.c') 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, -- cgit v1.2.1