| Index: src/platform/vboot_reference/utility/cgpt/cgpt_repair.c
|
| diff --git a/src/platform/vboot_reference/utility/cgpt/cgpt_repair.c b/src/platform/vboot_reference/utility/cgpt/cgpt_repair.c
|
| index 63a68f030630e303e9eebca27df446c37f9bab2b..de5f2e435e1ed20058d7f2105932ca6801c8f508 100644
|
| --- a/src/platform/vboot_reference/utility/cgpt/cgpt_repair.c
|
| +++ b/src/platform/vboot_reference/utility/cgpt/cgpt_repair.c
|
| @@ -66,6 +66,16 @@ int CgptRepair(int argc, char *argv[]) {
|
| if (CGPT_OK != OpenDriveInLastArgument(argc, argv, &drive))
|
| return CGPT_FAILED;
|
|
|
| + GptRepair(&drive.gpt);
|
| + if (drive.gpt.modified & GPT_MODIFIED_HEADER1)
|
| + printf("* Pri Header is updated.\n");
|
| + if (drive.gpt.modified & GPT_MODIFIED_ENTRIES1)
|
| + printf("* Pri Table Entries is updated.\n");
|
| + if (drive.gpt.modified & GPT_MODIFIED_ENTRIES2)
|
| + printf("* Sec Table Entries is updated.\n");
|
| + if (drive.gpt.modified & GPT_MODIFIED_HEADER2)
|
| + printf("* Sec Header is updated.\n");
|
| +
|
| DriveClose(&drive);
|
|
|
| return CGPT_OK;
|
|
|