BaseTools CommonLib: Remove the unnecessary print message in PcdValueCommon

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
Liming Gao 2018-01-31 17:03:37 +08:00
parent a5a0f73dd2
commit 83ba30c5a3
1 changed files with 0 additions and 10 deletions

View File

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