Skip to content

Commit

Permalink
solve CIV installation slow issue
Browse files Browse the repository at this point in the history
Test Done:
CIV install and boot

Tracked-On: OAM-126419
Signed-off-by: Chen, Gang G <[email protected]>
  • Loading branch information
GangSecurity authored and sysopenci committed Oct 17, 2024
1 parent 93c2563 commit 953f01f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions libkernelflinger/gpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,6 @@ static CHAR16 *make_android_label(const CHAR16 *label)
return (ret == EFI_SUCCESS) ? (android_label) : (NULL);
}

void log_uid(EFI_GUID *uid)
{
CHAR16 outString[100];
GuidToString (outString, uid);
debug(L"UID: %s ", outString);
}

static struct gpt_partition *gpt_find_partition(const CHAR16 *label)
{
UINTN p;
Expand All @@ -424,10 +417,8 @@ static struct gpt_partition *gpt_find_partition(const CHAR16 *label)

if (StrCmp(part->name, label) &&
(!android_label || StrCmp(part->name, android_label))) {
debug(L"label %s in partition %d", part->name, p);
log_uid(&part->unique);
continue;
}
}

debug(L"Found label %s in partition %d", label, p);
return part;
Expand Down

0 comments on commit 953f01f

Please sign in to comment.