summaryrefslogtreecommitdiff
path: root/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c
diff options
context:
space:
mode:
authorScott Duplichan <scott@notabs.org>2015-04-10 02:42:04 +0000
committermauricema <mauricema@Edk2>2015-04-10 02:42:04 +0000
commit42e548a846cf93bd97f27220bc9c6b5e487e96fe (patch)
tree48be7f286210ea5074a87cd78ac2d0a21910049d /CorebootModulePkg/CbSupportDxe/CbSupportDxe.c
parent08248f45433e527609c9c4456f331e60c277f3b4 (diff)
downloadedk2-platforms-42e548a846cf93bd97f27220bc9c6b5e487e96fe.tar.xz
CorebootModulePkg: DEBUG print format corrections
Fix DEBUG print formats so that pointers and 64-bit integer values display correctly for both 32-bit and 64-bit builds. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan <scott@notabs.org> Reviewed-by: Prince Agyeman <prince.agyeman@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17153 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CorebootModulePkg/CbSupportDxe/CbSupportDxe.c')
-rwxr-xr-xCorebootModulePkg/CbSupportDxe/CbSupportDxe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c b/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c
index e752d1212e..8419c9d481 100755
--- a/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c
+++ b/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c
@@ -49,7 +49,7 @@ CbReserveResourceInGcd (
if (EFI_ERROR (Status)) {
DEBUG ((
EFI_D_ERROR,
- "Failed to add memory space :0x%x 0x%x\n",
+ "Failed to add memory space :0x%lx 0x%lx\n",
BaseAddress,
Length
));
@@ -109,7 +109,7 @@ OnReadyToBoot (
//
IoOr16 (mPmCtrlReg, BIT0);
- DEBUG ((EFI_D_ERROR, "Enable SCI bit at 0x%x before boot\n", mPmCtrlReg));
+ DEBUG ((EFI_D_ERROR, "Enable SCI bit at 0x%lx before boot\n", (UINT64)mPmCtrlReg));
}
/**
@@ -158,7 +158,7 @@ CbDxeEntryPoint (
// Install Acpi Table
//
if (pSystemTableInfo->AcpiTableBase != 0 && pSystemTableInfo->AcpiTableSize != 0) {
- DEBUG ((EFI_D_ERROR, "Install Acpi Table at 0x%x, length 0x%x\n", (UINTN)pSystemTableInfo->AcpiTableBase, pSystemTableInfo->AcpiTableSize));
+ DEBUG ((EFI_D_ERROR, "Install Acpi Table at 0x%lx, length 0x%x\n", pSystemTableInfo->AcpiTableBase, pSystemTableInfo->AcpiTableSize));
Status = gBS->InstallConfigurationTable (&gEfiAcpiTableGuid, (VOID *)(UINTN)pSystemTableInfo->AcpiTableBase);
ASSERT_EFI_ERROR (Status);
}
@@ -167,7 +167,7 @@ CbDxeEntryPoint (
// Install Smbios Table
//
if (pSystemTableInfo->SmbiosTableBase != 0 && pSystemTableInfo->SmbiosTableSize != 0) {
- DEBUG ((EFI_D_ERROR, "Install Smbios Table at 0x%x, length 0x%x\n", (UINTN)pSystemTableInfo->SmbiosTableBase, pSystemTableInfo->SmbiosTableSize));
+ DEBUG ((EFI_D_ERROR, "Install Smbios Table at 0x%lx, length 0x%x\n", pSystemTableInfo->SmbiosTableBase, pSystemTableInfo->SmbiosTableSize));
Status = gBS->InstallConfigurationTable (&gEfiSmbiosTableGuid, (VOID *)(UINTN)pSystemTableInfo->SmbiosTableBase);
ASSERT_EFI_ERROR (Status);
}
@@ -180,7 +180,7 @@ CbDxeEntryPoint (
pAcpiBoardInfo = (ACPI_BOARD_INFO *)GET_GUID_HOB_DATA (GuidHob);
mPmCtrlReg = (UINTN)pAcpiBoardInfo->PmCtrlRegBase;
- DEBUG ((EFI_D_ERROR, "PmCtrlReg at 0x%x\n", mPmCtrlReg));
+ DEBUG ((EFI_D_ERROR, "PmCtrlReg at 0x%lx\n", (UINT64)mPmCtrlReg));
//
// Register callback on the ready to boot event