@@ -96,10 +96,10 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,
9696
9797 /* Check the GPT header signature */
9898 if (le64_to_cpu (gpt_h -> signature ) != GPT_HEADER_SIGNATURE_UBOOT ) {
99- printf ("%s signature is wrong: 0x%llX != 0x%llX\n" ,
100- "GUID Partition Table Header" ,
101- le64_to_cpu (gpt_h -> signature ),
102- GPT_HEADER_SIGNATURE_UBOOT );
99+ // printf("%s signature is wrong: 0x%llX != 0x%llX\n",
100+ // "GUID Partition Table Header",
101+ // le64_to_cpu(gpt_h->signature),
102+ // GPT_HEADER_SIGNATURE_UBOOT);
103103 return -1 ;
104104 }
105105
@@ -688,8 +688,8 @@ int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head,
688688 if (is_gpt_valid (dev_desc ,
689689 GPT_PRIMARY_PARTITION_TABLE_LBA ,
690690 gpt_head , gpt_pte ) != 1 ) {
691- printf ("%s: *** ERROR: Invalid GPT ***\n" ,
692- __func__ );
691+ // printf("%s: *** ERROR: Invalid GPT ***\n",
692+ // __func__);
693693 return -1 ;
694694 }
695695
@@ -1018,17 +1018,17 @@ static int find_valid_gpt(struct blk_desc *dev_desc, gpt_header *gpt_head,
10181018
10191019 if (r != 1 ) {
10201020 if (r != 2 )
1021- printf ("%s: *** ERROR: Invalid GPT ***\n" , __func__ );
1021+ // printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
10221022
10231023 if (is_gpt_valid (dev_desc , (dev_desc -> lba - 1 ), gpt_head ,
10241024 pgpt_pte ) != 1 ) {
10251025 printf ("%s: *** ERROR: Invalid Backup GPT ***\n" ,
10261026 __func__ );
10271027 return 0 ;
10281028 }
1029- if (r != 2 )
1030- printf ("%s: *** Using Backup GPT ***\n" ,
1031- __func__ );
1029+ // if (r != 2)
1030+ // printf("%s: *** Using Backup GPT ***\n",
1031+ // __func__);
10321032 }
10331033 return 1 ;
10341034}
0 commit comments