]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools CommonLib: Remove the unnecessary print message in PcdValueCommon
authorLiming Gao <liming.gao@intel.com>
Wed, 31 Jan 2018 09:03:37 +0000 (17:03 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 1 Feb 2018 02:09:49 +0000 (10:09 +0800)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/C/Common/PcdValueCommon.c

index 92328daa160289d395a51b63681696ad820be77b..210f87b8b594ffaaab18152bf4444738cd735f43 100644 (file)
@@ -330,9 +330,7 @@ Returns:
     break;\r
   case PcdDataTypePointer:\r
     Value = &PcdList[Index].Value[1];\r
     break;\r
   case PcdDataTypePointer:\r
     Value = &PcdList[Index].Value[1];\r
-    printf ("Value = %s\n", PcdList[Index].Value);\r
     for (*Size = 0, Byte = (UINT8) strtoul(Value, &End, 16); Value != End; Byte = (UINT8) strtoul(Value, &End, 16), *Size = *Size + 1) {\r
     for (*Size = 0, Byte = (UINT8) strtoul(Value, &End, 16); Value != End; Byte = (UINT8) strtoul(Value, &End, 16), *Size = *Size + 1) {\r
-      printf("%x\n", Byte);\r
       Value = End + 1;\r
     }\r
     Buffer = malloc(*Size + 1);\r
       Value = End + 1;\r
     }\r
     Buffer = malloc(*Size + 1);\r
@@ -401,7 +399,6 @@ Returns:
     PcdList[Index].Value = malloc(Size * 5 + 3);\r
     PcdList[Index].Value[0] = '{';\r
     for (ValueIndex = 0; ValueIndex < Size; ValueIndex++) {\r
     PcdList[Index].Value = malloc(Size * 5 + 3);\r
     PcdList[Index].Value[0] = '{';\r
     for (ValueIndex = 0; ValueIndex < Size; ValueIndex++) {\r
-      printf("Value[%d] = %02x\n", ValueIndex, Value[ValueIndex]);\r
       sprintf(&PcdList[Index].Value[1 + ValueIndex * 5], "0x%02x,", Value[ValueIndex]);\r
     }\r
     PcdList[Index].Value[1 + Size * 5 - 1] = '}';\r
       sprintf(&PcdList[Index].Value[1 + ValueIndex * 5], "0x%02x,", Value[ValueIndex]);\r
     }\r
     PcdList[Index].Value[1 + Size * 5 - 1] = '}';\r
@@ -724,15 +721,11 @@ Returns:
   if (*InputFileName == NULL) {\r
     fprintf (stderr, "Missing option.  Input files is not specified\n");\r
     exit (EXIT_FAILURE);\r
   if (*InputFileName == NULL) {\r
     fprintf (stderr, "Missing option.  Input files is not specified\n");\r
     exit (EXIT_FAILURE);\r
-  } else {\r
-    printf ("Input file name is %s\n", *InputFileName);\r
   }\r
 \r
   if (*OutputFileName == NULL) {\r
     fprintf (stderr, "Missing option.  Output file is not specified\n");\r
     exit (EXIT_FAILURE);\r
   }\r
 \r
   if (*OutputFileName == NULL) {\r
     fprintf (stderr, "Missing option.  Output file is not specified\n");\r
     exit (EXIT_FAILURE);\r
-  } else {\r
-    printf ("Output file name is %s\n", *OutputFileName);\r
   }\r
 }\r
 \r
   }\r
 }\r
 \r
@@ -761,7 +754,6 @@ Returns:
   UINT8   *FileBuffer;\r
   UINT32  FileSize;\r
 \r
   UINT8   *FileBuffer;\r
   UINT32  FileSize;\r
 \r
-  printf ("PCD tool start.\n");\r
   InputFileName = NULL;\r
   OutputFileName = NULL;\r
 \r
   InputFileName = NULL;\r
   OutputFileName = NULL;\r
 \r
@@ -790,7 +782,5 @@ Returns:
   //\r
   WriteOutputFile (OutputFileName);\r
 \r
   //\r
   WriteOutputFile (OutputFileName);\r
 \r
-  printf ("PCD tool done.\n");\r
-\r
   exit (EXIT_SUCCESS);\r
 }\r
   exit (EXIT_SUCCESS);\r
 }\r