CorebootModulePkg: DEBUG print format corrections
[mirror_edk2.git] / CorebootModulePkg / Library / CbParseLib / CbParseLib.c
index f4ba69f..c9b39b1 100644 (file)
@@ -143,7 +143,7 @@ FindCbMemTable (
        if (pMemTableSize)\r
                *pMemTableSize = root->entries[Idx].size;\r
        \r
-       DEBUG ((EFI_D_ERROR, "Find CbMemTable Id 0x%x, base 0x%x, size 0x%x\n", TableId, *pMemTable, *pMemTableSize));\r
+       DEBUG ((EFI_D_ERROR, "Find CbMemTable Id 0x%x, base %p, size 0x%x\n", TableId, *pMemTable, *pMemTableSize));\r
        return RETURN_SUCCESS;\r
     }\r
   }\r
@@ -209,7 +209,7 @@ CbParseMemoryInfo (
     }\r
   }\r
   \r
-  DEBUG ((EFI_D_ERROR, "Low memory 0x%x, High Memory 0x%x\n", *pLowMemorySize, *pHighMemorySize));\r
+  DEBUG ((EFI_D_ERROR, "Low memory 0x%lx, High Memory 0x%lx\n", *pLowMemorySize, *pHighMemorySize));\r
   \r
   return RETURN_SUCCESS;       \r
 }\r
@@ -351,8 +351,8 @@ CbParseFadtInfo (
        if (!Rsdp)\r
                return RETURN_NOT_FOUND;\r
                \r
-       DEBUG ((EFI_D_ERROR, "Find Rsdp at 0x%x\n", Rsdp));\r
-       DEBUG ((EFI_D_ERROR, "Find Rsdt 0x%x, Xsdt 0x%x\n", Rsdp->RsdtAddress, Rsdp->XsdtAddress));\r
+       DEBUG ((EFI_D_ERROR, "Find Rsdp at %p\n", Rsdp));\r
+       DEBUG ((EFI_D_ERROR, "Find Rsdt 0x%x, Xsdt 0x%lx\n", Rsdp->RsdtAddress, Rsdp->XsdtAddress));\r
        \r
        //\r
        // Search Rsdt First\r
@@ -374,7 +374,7 @@ CbParseFadtInfo (
                \r
              if (pResetReg)   \r
                *pResetReg = (UINTN)Fadt->ResetReg.Address; \r
-             DEBUG ((EFI_D_ERROR, "Reset Reg 0x%x\n", Fadt->ResetReg.Address));\r
+             DEBUG ((EFI_D_ERROR, "Reset Reg 0x%lx\n", Fadt->ResetReg.Address));\r
                \r
              if (pResetValue)   \r
                *pResetValue = Fadt->ResetValue;\r
@@ -405,7 +405,7 @@ CbParseFadtInfo (
                \r
              if (pResetReg)   \r
                *pResetReg = (UINTN)Fadt->ResetReg.Address; \r
-             DEBUG ((EFI_D_ERROR, "Reset Reg 0x%x\n", Fadt->ResetReg.Address));\r
+             DEBUG ((EFI_D_ERROR, "Reset Reg 0x%lx\n", Fadt->ResetReg.Address));\r
                \r
              if (pResetValue)   \r
                *pResetValue = Fadt->ResetValue;\r
@@ -522,7 +522,7 @@ CbParseFbInfo (
                return RETURN_NOT_FOUND;\r
                \r
   DEBUG ((EFI_D_ERROR, "Found coreboot video frame buffer information\n"));\r
-  DEBUG ((EFI_D_ERROR, "physical_address: 0x%x\n", CbFbRec->physical_address));\r
+  DEBUG ((EFI_D_ERROR, "physical_address: 0x%lx\n", CbFbRec->physical_address));\r
   DEBUG ((EFI_D_ERROR, "x_resolution: 0x%x\n", CbFbRec->x_resolution));\r
   DEBUG ((EFI_D_ERROR, "y_resolution: 0x%x\n", CbFbRec->y_resolution));\r
   DEBUG ((EFI_D_ERROR, "bits_per_pixel: 0x%x\n", CbFbRec->bits_per_pixel));\r