]> git.proxmox.com Git - mirror_edk2.git/commitdiff
code review's result.
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 12 Aug 2008 07:20:10 +0000 (07:20 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 12 Aug 2008 07:20:10 +0000 (07:20 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5633 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
MdePkg/Include/Library/DebugLib.h
MdePkg/Include/Library/FvbServiceLib.h
MdePkg/Include/Library/HiiLib.h
MdePkg/Library/HiiLib/HiiLanguage.c
MdePkg/Library/HiiLib/HiiString.c

index 6f4db10e8892e2cc485d21024e054bf97bc15d2c..58dd56bf4b5854b6f71ea42b597c4bdbac366dec 100644 (file)
@@ -111,7 +111,7 @@ DebugPrint (
   DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then\r
   CpuDeadLoop() is called.  If neither of these bits are set, then this function\r
   returns immediately after the message is printed to the debug output device.\r
-  DebugAssert() must actively prevent recusrsion.  If DebugAssert() is called while\r
+  DebugAssert() must actively prevent recursion.  If DebugAssert() is called while\r
   processing another DebugAssert(), then DebugAssert() must return immediately.\r
 \r
   If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
index 5f0c923fb45e93886a162dc0b41ae6d8c623e122..828cd441cf22b60bce5d242e121cfa71b96c3d08 100644 (file)
@@ -98,12 +98,12 @@ DebugPrint (
   DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then \r
   CpuDeadLoop() is called.  If neither of these bits are set, then this function \r
   returns immediately after the message is printed to the debug output device.\r
-  DebugAssert() must actively prevent recusrsion.  If DebugAssert() is called while\r
+  DebugAssert() must actively prevent recursion.  If DebugAssert() is called while\r
   processing another DebugAssert(), then DebugAssert() must return immediately.\r
 \r
-  If FileName is NULL, then a <FileName> string of ?NULL) Filename?is printed.\r
+  If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
 \r
-  If Description is NULL, then a <Description> string of ?NULL) Description?is printed.\r
+  If Description is NULL, then a <Description> string of "(NULL) Description" is printed.\r
 \r
   @param  FileName     Pointer to the name of the source file that generated the assert condition.\r
   @param  LineNumber   The line number in the source file that generated the assert condition\r
@@ -128,7 +128,7 @@ DebugAssert (
 \r
   If Buffer is NULL, then ASSERT().\r
 \r
-  If Length is greater than (MAX_ADDRESS ?Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). \r
 \r
   @param   Buffer  Pointer to the target buffer to be filled with PcdDebugClearMemoryValue.\r
   @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. \r
index 1618716f447f19c3d2af187d62a1c0ccfbec2d33..88d2587ff6862aba827c382621027b36d53da332 100644 (file)
@@ -12,8 +12,8 @@
 \r
 **/\r
 \r
-#ifndef __EDK_FVB_SERVICE_LIB_H__\r
-#define __EDK_FVB_SERVICE_LIB_H__\r
+#ifndef __FVB_SERVICE_LIB_H__\r
+#define __FVB_SERVICE_LIB_H__\r
 \r
 /**
   Reads specified number of bytes into a buffer from the specified block.\r
@@ -38,7 +38,7 @@ EfiFvbReadBlock (
   IN EFI_LBA                                      Lba,\r
   IN UINTN                                        Offset,\r
   IN OUT UINTN                                    *NumBytes,\r
-  IN UINT8                                        *Buffer\r
+  OUT UINT8                                        *Buffer\r
   );\r
 \r
 \r
index 012a7b8052c114df5b5bac45ac02cecd35469683..33bcf30a215d0e9f43fcbbecf4c6c03641874681 100644 (file)
@@ -173,7 +173,6 @@ HiiLibSetString (
   @retval EFI_NOT_FOUND          The string specified by StringId is not available.\r
   @retval EFI_BUFFER_TOO_SMALL   The buffer specified by StringLength is too small\r
                                  to hold the string.\r
-  @retval EFI_INVALID_PARAMETER  The String or StringSize was NULL.\r
 \r
 **/\r
 EFI_STATUS\r
index 3d9a36d468cba07101387ef315e5b1368030a08a..6948b2c331eba844e68062bc6e3e8e2ca45499d2 100644 (file)
@@ -84,6 +84,7 @@ HiiLibGetNextLanguage (
   CHAR8  *StringPtr;\r
 \r
   ASSERT (LangCode != NULL);\r
+  ASSERT (*LangCode != NULL);\r
   ASSERT (Lang != NULL);\r
 \r
   Index = 0;\r
index 0d07ebc68a16410346170990b555480ee1657f2c..c7d11a5761d6c9868d0441501d3cbbf1c5f37c54 100644 (file)
@@ -230,7 +230,6 @@ Out:
   @retval EFI_NOT_FOUND          The string specified by StringId is not available.\r
   @retval EFI_BUFFER_TOO_SMALL   The buffer specified by StringLength is too small\r
                                  to hold the string.\r
-  @retval EFI_INVALID_PARAMETER  The String or StringSize was NULL.\r
 \r
 **/\r
 EFI_STATUS\r