1) Update code to use PcdFixedUsbCredentialProviderTokenFileName and PcdMaxVariableSize as patchable PCD instead of FixedAtBuild PCD.
2) Correct a typo in file comments of Tpm12Ownership.c Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong, Guo <guo.dong@intel.com> Reviewed-by: Gao, Liming <liming.gao@intel.com> Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15811 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -478,7 +478,7 @@ GetToken (
|
||||
|
||||
BufSize = 0;
|
||||
Buffer = NULL;
|
||||
TokenFile = FixedPcdGetPtr (PcdFixedUsbCredentialProviderTokenFileName);
|
||||
TokenFile = PcdGetPtr (PcdFixedUsbCredentialProviderTokenFileName);
|
||||
Status = GetFileData (TokenFile, (VOID *)&Buffer, &BufSize);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "Read file %s from USB error! Status=(%r)\n", TokenFile, Status));
|
||||
|
Reference in New Issue
Block a user