summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-02-27 13:38:05 +0800
committerLiming Gao <liming.gao@intel.com>2018-02-27 18:43:30 +0800
commitf71503c37c4815caa4c8b7afe53df7c2fc220530 (patch)
tree00ad83960d1b4cb53afb4fc40125764522e118dc /MdeModulePkg/Universal
parent29c50757873c431c59fa4173f9cfd5c3548a1394 (diff)
downloadedk2-f71503c37c4815caa4c8b7afe53df7c2fc220530.zip
edk2-f71503c37c4815caa4c8b7afe53df7c2fc220530.tar.gz
edk2-f71503c37c4815caa4c8b7afe53df7c2fc220530.tar.bz2
MdeModulePkg PCD: Add more debug message to show SkuId update
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Star Zeng <star.zeng@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/PCD/Dxe/Pcd.c6
-rw-r--r--MdeModulePkg/Universal/PCD/Pei/Pcd.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c
index ee53ae3..c30e9d3 100644
--- a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c
+++ b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c
@@ -273,10 +273,13 @@ DxePcdSetSku (
UINTN Index;
EFI_STATUS Status;
+ DEBUG ((DEBUG_INFO, "PcdDxe - SkuId 0x%lx is to be set.\n", (SKU_ID) SkuId));
+
if (SkuId == mPcdDatabase.DxeDb->SystemSkuId) {
//
// The input SKU Id is equal to current SKU Id, return directly.
//
+ DEBUG ((DEBUG_INFO, "PcdDxe - SkuId is same to current system Sku.\n"));
return;
}
@@ -295,6 +298,7 @@ DxePcdSetSku (
SkuIdTable = (SKU_ID *) ((UINT8 *) mPcdDatabase.DxeDb + mPcdDatabase.DxeDb->SkuIdTableOffset);
for (Index = 0; Index < SkuIdTable[0]; Index++) {
if (SkuId == SkuIdTable[Index + 1]) {
+ DEBUG ((DEBUG_INFO, "PcdDxe - SkuId is found in SkuId table.\n"));
Status = UpdatePcdDatabase (SkuId, TRUE);
if (!EFI_ERROR (Status)) {
mPcdDatabase.DxeDb->SystemSkuId = (SKU_ID) SkuId;
@@ -307,7 +311,7 @@ DxePcdSetSku (
//
// Invalid input SkuId, the default SKU Id will be still used for the system.
//
- DEBUG ((DEBUG_INFO, "PcdDxe - Invalid input SkuId, the default SKU Id will be still used.\n"));
+ DEBUG ((DEBUG_ERROR, "PcdDxe - Invalid input SkuId, the default SKU Id will be still used.\n"));
return;
}
diff --git a/MdeModulePkg/Universal/PCD/Pei/Pcd.c b/MdeModulePkg/Universal/PCD/Pei/Pcd.c
index f821395..8d9328b 100644
--- a/MdeModulePkg/Universal/PCD/Pei/Pcd.c
+++ b/MdeModulePkg/Universal/PCD/Pei/Pcd.c
@@ -475,12 +475,15 @@ PeiPcdSetSku (
PCD_DATABASE_SKU_DELTA *SkuDelta;
PCD_DATA_DELTA *SkuDeltaData;
+ DEBUG ((DEBUG_INFO, "PcdPei - SkuId 0x%lx is to be set.\n", (SKU_ID) SkuId));
+
PeiPcdDb = GetPcdDatabase();
if (SkuId == PeiPcdDb->SystemSkuId) {
//
// The input SKU Id is equal to current SKU Id, return directly.
//
+ DEBUG ((DEBUG_INFO, "PcdPei - SkuId is same to current system Sku.\n"));
return;
}
@@ -499,6 +502,7 @@ PeiPcdSetSku (
SkuIdTable = (SKU_ID *) ((UINT8 *) PeiPcdDb + PeiPcdDb->SkuIdTableOffset);
for (Index = 0; Index < SkuIdTable[0]; Index++) {
if (SkuId == SkuIdTable[Index + 1]) {
+ DEBUG ((DEBUG_INFO, "PcdPei - SkuId is found in SkuId table.\n"));
break;
}
}
@@ -570,7 +574,7 @@ PeiPcdSetSku (
//
// Invalid input SkuId, the default SKU Id will be still used for the system.
//
- DEBUG ((EFI_D_INFO, "PcdPei - Invalid input SkuId, the default SKU Id will be still used.\n"));
+ DEBUG ((DEBUG_ERROR, "PcdPei - Invalid input SkuId, the default SKU Id will be still used.\n"));
return;
}