From cd14fe3dcf9445a2b3c9e8e3eef78c23c4d2b7cd Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 19 Jun 2006 07:40:23 +0000 Subject: =?UTF-8?q?=091.=20PostCodeLib.=20=09=09Rename=20BasePostCodeLib80?= =?UTF-8?q?=20to=20BasePostCodeLibPort80.=20=09=09Fix=20typos=20in=20macro?= =?UTF-8?q?=20POST=5FCODE()=20and=20POST=5FCODE=5FWITH=5FDESCRIPTION()=20?= =?UTF-8?q?=092.=20DebugLib=20=09=09Change=20the=20parameter=20type=20of?= =?UTF-8?q?=20LineNumber=20of=20DebugAssert()=20from=20=E2=80=9CINTN?= =?UTF-8?q?=E2=80=9D=20to=20=E2=80=9CUINTN=E2=80=9D=20to=20follow=20MWG.?= =?UTF-8?q?=20=09=09Add=20type=20cast=20=E2=80=9C(EFI=5FGUID=20*)=E2=80=9D?= =?UTF-8?q?=20in=20macro=20ASSERT=5FPROTCOL=5FALREADY=5FINSTALLED=20()=20t?= =?UTF-8?q?o=20follow=20MWG.=20=093.=20BasePeCoffLib/=20=09=09Add=20librar?= =?UTF-8?q?y=20function=20header=20for=20all=20the=20interfaces=20in=20MWG?= =?UTF-8?q?.=20=09=09Add=20missing=20ASSERT()s.=20=094.=20PciLib=20=09=09A?= =?UTF-8?q?dd=20ASSERT()s=20in=20PciRead/WriteBuffer()=20to=20check=20cros?= =?UTF-8?q?s=20PCI=20function=20access.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@557 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Library/DebugLib.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'MdePkg/Include/Library/DebugLib.h') diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/DebugLib.h index b1d320057f..693fc3cf7a 100644 --- a/MdePkg/Include/Library/DebugLib.h +++ b/MdePkg/Include/Library/DebugLib.h @@ -94,7 +94,7 @@ VOID EFIAPI DebugAssert ( IN CONST CHAR8 *FileName, - IN INTN LineNumber, + IN UINTN LineNumber, IN CONST CHAR8 *Description ); @@ -311,21 +311,21 @@ DebugClearMemoryEnabled ( @param Guid Pointer to a protocol GUID. **/ -#define ASSERT_PROTOCOL_ALREADY_INSTALLED(Handle, Guid) \ - do { \ - if (DebugAssertEnabled ()) { \ - VOID *Instance; \ - ASSERT (Guid != NULL); \ - if (Handle == NULL) { \ - if (!EFI_ERROR (gBS->LocateProtocol (Guid, NULL, &Instance))) { \ - _ASSERT (Guid already installed in database); \ - } \ - } else { \ - if (!EFI_ERROR (gBS->HandleProtocol (Handle, Guid, &Instance))) { \ - _ASSERT (Guid already installed on Handle); \ - } \ - } \ - } \ +#define ASSERT_PROTOCOL_ALREADY_INSTALLED(Handle, Guid) \ + do { \ + if (DebugAssertEnabled ()) { \ + VOID *Instance; \ + ASSERT (Guid != NULL); \ + if (Handle == NULL) { \ + if (!EFI_ERROR (gBS->LocateProtocol ((EFI_GUID *)Guid, NULL, &Instance))) { \ + _ASSERT (Guid already installed in database); \ + } \ + } else { \ + if (!EFI_ERROR (gBS->HandleProtocol (Handle, (EFI_GUID *)Guid, &Instance))) { \ + _ASSERT (Guid already installed on Handle); \ + } \ + } \ + } \ } while (FALSE) -- cgit v1.2.3