mirror of https://github.com/acidanthera/audk.git
Use %lx to print UINT64 value instead of %x.
Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com> Reviewed-by: Elvin Li<elvin.li@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13863 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7714cf7d0d
commit
980050bc04
|
@ -334,7 +334,7 @@ DumpPciBars (
|
|||
|
||||
DEBUG ((
|
||||
EFI_D_INFO,
|
||||
" BAR[%d]: Type = %s; Alignment = 0x%x;\tLength = 0x%x;\tOffset = 0x%02x\n",
|
||||
" BAR[%d]: Type = %s; Alignment = 0x%lx;\tLength = 0x%lx;\tOffset = 0x%02x\n",
|
||||
Index, mBarTypeStr[MIN (PciIoDevice->PciBar[Index].BarType, PciBarTypeMaxType)],
|
||||
PciIoDevice->PciBar[Index].Alignment, PciIoDevice->PciBar[Index].Length, PciIoDevice->PciBar[Index].Offset
|
||||
));
|
||||
|
@ -347,7 +347,7 @@ DumpPciBars (
|
|||
|
||||
DEBUG ((
|
||||
EFI_D_INFO,
|
||||
" VFBAR[%d]: Type = %s; Alignment = 0x%x;\tLength = 0x%x;\tOffset = 0x%02x\n",
|
||||
" VFBAR[%d]: Type = %s; Alignment = 0x%lx;\tLength = 0x%lx;\tOffset = 0x%02x\n",
|
||||
Index, mBarTypeStr[MIN (PciIoDevice->VfPciBar[Index].BarType, PciBarTypeMaxType)],
|
||||
PciIoDevice->VfPciBar[Index].Alignment, PciIoDevice->VfPciBar[Index].Length, PciIoDevice->VfPciBar[Index].Offset
|
||||
));
|
||||
|
@ -980,8 +980,8 @@ PciSetDeviceAttribute (
|
|||
|
||||
if (IS_PCI_LPC (&PciIoDevice->Pci)) {
|
||||
Attributes |= EFI_PCI_IO_ATTRIBUTE_ISA_MOTHERBOARD_IO;
|
||||
Attributes |= (mReserveIsaAliases ? EFI_PCI_IO_ATTRIBUTE_ISA_IO : \
|
||||
EFI_PCI_IO_ATTRIBUTE_ISA_IO_16);
|
||||
Attributes |= (mReserveIsaAliases ? (UINT64) EFI_PCI_IO_ATTRIBUTE_ISA_IO : \
|
||||
(UINT64) EFI_PCI_IO_ATTRIBUTE_ISA_IO_16);
|
||||
}
|
||||
|
||||
if (IS_PCI_BRIDGE (&PciIoDevice->Pci) || IS_CARDBUS_BRIDGE (&PciIoDevice->Pci)) {
|
||||
|
@ -1007,8 +1007,8 @@ PciSetDeviceAttribute (
|
|||
|
||||
if (IS_PCI_VGA (&PciIoDevice->Pci)) {
|
||||
Attributes |= EFI_PCI_IO_ATTRIBUTE_VGA_MEMORY;
|
||||
Attributes |= (mReserveVgaAliases ? EFI_PCI_IO_ATTRIBUTE_VGA_IO : \
|
||||
EFI_PCI_IO_ATTRIBUTE_VGA_IO_16);
|
||||
Attributes |= (mReserveVgaAliases ? (UINT64) EFI_PCI_IO_ATTRIBUTE_VGA_IO : \
|
||||
(UINT64) EFI_PCI_IO_ATTRIBUTE_VGA_IO_16);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Internal library implementation for PCI Bus module.
|
||||
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -182,7 +182,7 @@ DumpBridgeResource (
|
|||
|
||||
if ((BridgeResource != NULL) && (BridgeResource->Length != 0)) {
|
||||
DEBUG ((
|
||||
EFI_D_INFO, "Type = %s; Base = 0x%x;\tLength = 0x%x;\tAlignment = 0x%x\n",
|
||||
EFI_D_INFO, "Type = %s; Base = 0x%lx;\tLength = 0x%lx;\tAlignment = 0x%lx\n",
|
||||
mBarTypeStr[MIN (BridgeResource->ResType, PciBarTypeMaxType)],
|
||||
BridgeResource->PciDev->PciBar[BridgeResource->Bar].BaseAddress,
|
||||
BridgeResource->Length, BridgeResource->Alignment
|
||||
|
@ -195,7 +195,7 @@ DumpBridgeResource (
|
|||
if (Resource->ResourceUsage == PciResUsageTypical) {
|
||||
Bar = Resource->Virtual ? Resource->PciDev->VfPciBar : Resource->PciDev->PciBar;
|
||||
DEBUG ((
|
||||
EFI_D_INFO, " Base = 0x%x;\tLength = 0x%x;\tAlignment = 0x%x;\tOwner = %s ",
|
||||
EFI_D_INFO, " Base = 0x%lx;\tLength = 0x%lx;\tAlignment = 0x%lx;\tOwner = %s ",
|
||||
Bar[Resource->Bar].BaseAddress, Resource->Length, Resource->Alignment,
|
||||
IS_PCI_BRIDGE (&Resource->PciDev->Pci) ? L"PPB" :
|
||||
IS_CARDBUS_BRIDGE (&Resource->PciDev->Pci) ? L"P2C" :
|
||||
|
@ -225,7 +225,7 @@ DumpBridgeResource (
|
|||
));
|
||||
}
|
||||
} else {
|
||||
DEBUG ((EFI_D_INFO, " Padding:Length = 0x%x;\tAlignment = 0x%x\n", Resource->Length, Resource->Alignment));
|
||||
DEBUG ((EFI_D_INFO, " Padding:Length = 0x%lx;\tAlignment = 0x%lx\n", Resource->Length, Resource->Alignment));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue