diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-19 07:40:23 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-19 07:40:23 +0000 |
commit | cd14fe3dcf9445a2b3c9e8e3eef78c23c4d2b7cd (patch) | |
tree | 0589e6abd2e8169447050529e3d77e9a47999b17 /MdePkg/Include | |
parent | f0147869353782c3413148bbccc1925ed2ade622 (diff) | |
download | edk2-platforms-cd14fe3dcf9445a2b3c9e8e3eef78c23c4d2b7cd.tar.xz |
1. PostCodeLib.
Rename BasePostCodeLib80 to BasePostCodeLibPort80.
Fix typos in macro POST_CODE() and POST_CODE_WITH_DESCRIPTION()
2. DebugLib
Change the parameter type of LineNumber of DebugAssert() from “INTN” to “UINTN” to follow MWG.
Add type cast “(EFI_GUID *)” in macro ASSERT_PROTCOL_ALREADY_INSTALLED () to follow MWG.
3. BasePeCoffLib/
Add library function header for all the interfaces in MWG.
Add missing ASSERT()s.
4. PciLib
Add ASSERT()s in PciRead/WriteBuffer() to check cross PCI function access.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@557 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include')
-rw-r--r-- | MdePkg/Include/Library/DebugLib.h | 32 | ||||
-rw-r--r-- | MdePkg/Include/Library/PostCodeLib.h | 6 |
2 files changed, 19 insertions, 19 deletions
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)
diff --git a/MdePkg/Include/Library/PostCodeLib.h b/MdePkg/Include/Library/PostCodeLib.h index 78ce4b205a..5a80c561df 100644 --- a/MdePkg/Include/Library/PostCodeLib.h +++ b/MdePkg/Include/Library/PostCodeLib.h @@ -125,7 +125,7 @@ PostCodeDescriptionEnabled ( @return Value
**/
-#define POST_CODE(Value) ReportPostCodeEnabled() ? PostCode(Value) : Value
+#define POST_CODE(Value) PostCodeEnabled() ? PostCode(Value) : Value
/**
Sends an 32-bit value to a POST and associated ASCII string.
@@ -141,8 +141,8 @@ PostCodeDescriptionEnabled ( **/
#define POST_CODE_WITH_DESCRIPTION(Value,Description) \
- ReportPostCodeEnabled() ? \
- (ReportPostCodeDescriptionEnabled() ? \
+ PostCodeEnabled() ? \
+ (PostCodeDescriptionEnabled() ? \
PostCodeWithDescription(Value,Description) : \
PostCode(Value)) : \
Value
|