summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiLib
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-25 12:21:57 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-25 12:21:57 +0000
commit42eedea958591087603bbacd1c2227d2494026af (patch)
tree2213bd86a2a23738bf9caeb10f48df6ad5a1986b /MdePkg/Library/UefiLib
parent0f82bd55142af193e669e76fcaf02f8d835f3f39 (diff)
downloadedk2-platforms-42eedea958591087603bbacd1c2227d2494026af.tar.xz
Code Scrub for MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5567 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiLib')
-rw-r--r--MdePkg/Library/UefiLib/UefiLib.c9
-rw-r--r--MdePkg/Library/UefiLib/UefiLibInternal.h2
-rw-r--r--MdePkg/Library/UefiLib/UefiLibPrint.c5
-rw-r--r--MdePkg/Library/UefiLib/UefiNotTiano.c13
4 files changed, 15 insertions, 14 deletions
diff --git a/MdePkg/Library/UefiLib/UefiLib.c b/MdePkg/Library/UefiLib/UefiLib.c
index d7d7043a23..877c320ff7 100644
--- a/MdePkg/Library/UefiLib/UefiLib.c
+++ b/MdePkg/Library/UefiLib/UefiLib.c
@@ -27,7 +27,6 @@
@retval FALSE Language 1 and language 2 are not the same.
**/
-STATIC
BOOLEAN
CompareIso639LanguageCode (
IN CONST CHAR8 *Language1,
@@ -257,7 +256,7 @@ EfiNamedEventSignal (
@param VOID
- @retvale EFI_TPL The current TPL.
+ @retval EFI_TPL The current TPL.
**/
EFI_TPL
@@ -308,7 +307,7 @@ EfiInitializeLock (
priority level of the mutual exclusion lock. Then, it places the lock in the
acquired state.
- @param Priority The task priority level of the lock.
+ @param Lock The task lock with priority level.
**/
VOID
@@ -457,7 +456,7 @@ EfiTestManagedDevice (
@param ControllerHandle A handle for a (parent) controller to test.
@param ChildHandle A child handle to test.
- @param ConsumsedGuid Supplies the protocol that the child controller
+ @param ProtocolGuid Supplies the protocol that the child controller
opens on its parent controller.
@retval EFI_SUCCESS ChildHandle is a child of the ControllerHandle.
@@ -1076,7 +1075,7 @@ AddUnicodeString2 (
while (OldUnicodeStringTable->Language != NULL) {
LanguageString = OldUnicodeStringTable->Language;
- while (*LanguageString) {
+ while (*LanguageString != 0) {
for (Index = 0; LanguageString[Index] != 0 && LanguageString[Index] != ';'; Index++);
if (AsciiStrnCmp (Language, LanguageString, Index) == 0) {
diff --git a/MdePkg/Library/UefiLib/UefiLibInternal.h b/MdePkg/Library/UefiLib/UefiLibInternal.h
index b21e5d1559..970df2bc79 100644
--- a/MdePkg/Library/UefiLib/UefiLibInternal.h
+++ b/MdePkg/Library/UefiLib/UefiLibInternal.h
@@ -1,4 +1,4 @@
-/**@file
+/** @file
Internal include file for UefiLib.
Copyright (c) 2007, Intel Corporation.<BR>
diff --git a/MdePkg/Library/UefiLib/UefiLibPrint.c b/MdePkg/Library/UefiLib/UefiLibPrint.c
index df9e4d341d..c277974ab4 100644
--- a/MdePkg/Library/UefiLib/UefiLibPrint.c
+++ b/MdePkg/Library/UefiLib/UefiLibPrint.c
@@ -36,9 +36,8 @@
@return The number of Unicode characters in the produced
output buffer not including the Null-terminator.
**/
-
-STATIC
UINTN
+EFIAPI
InternalPrint (
IN CONST CHAR16 *Format,
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *Console,
@@ -170,8 +169,8 @@ ErrorPrint (
output buffer not including the Null-terminator.
**/
-STATIC
UINTN
+EFIAPI
AsciiInternalPrint (
IN CONST CHAR8 *Format,
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *Console,
diff --git a/MdePkg/Library/UefiLib/UefiNotTiano.c b/MdePkg/Library/UefiLib/UefiNotTiano.c
index b621963fbc..522367993c 100644
--- a/MdePkg/Library/UefiLib/UefiNotTiano.c
+++ b/MdePkg/Library/UefiLib/UefiNotTiano.c
@@ -28,9 +28,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
This empty function ensures that EFI_EVENT_NOTIFY_SIGNAL_ALL is error
checked correctly since it is now mapped into CreateEventEx() in UEFI 2.0.
+
+ @param Event Event whose notification function is being invoked.
+ @param Context Pointer to the notification function's context,
+ which is implementation-dependent.
**/
-STATIC
VOID
EFIAPI
InternalEmptyFuntion (
@@ -135,7 +138,7 @@ EfiCreateEventLegacyBootEx (
the EDK/EFI 1.10 form and EDK II/UEFI 2.0 form and allows common code to
work both ways.
- @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).
+ @param ReadyToBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).
@retval EFI_SUCCESS Event was created.
@retval Other Event was not created.
@@ -168,7 +171,7 @@ EfiCreateEventReadyToBoot (
@param NotifyTpl The task priority level of the event.
@param NotifyFunction The notification function to call when the event is signaled.
@param NotifyContext The content to pass to NotifyFunction when the event is signaled.
- @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).
+ @param ReadyToBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).
@retval EFI_SUCCESS Event was created.
@retval Other Event was not created.
@@ -269,7 +272,7 @@ EfiSignalEventLegacyBoot (
function points to a location in FvDevicePathNode and it does not allocate
new memory for the GUID pointer that is returned.
- @param FvDevicePathNode Pointer to FV device path to check.
+ @param FvFileDevicePathNode Pointer to FV device path to check.
@retval NULL FvDevicePathNode is not valid.
@retval Other FvDevicePathNode is valid and pointer to NameGuid was returned.
@@ -302,7 +305,7 @@ EfiGetNameGuidFromFwVolDevicePathNode (
is compiled to conform with the UEFI 2.0 specification use the new device path
else use the old form for backwards compatability.
- @param FvDevicePathNode Pointer to a FV device path node to initialize
+ @param FvFileDevicePathNode Pointer to a FV device path node to initialize
@param NameGuid FV file name to use in FvDevicePathNode
**/