X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellDebug1CommandsLib%2FUefiShellDebug1CommandsLib.c;h=b54d8e1f28f4a259d1045963dbf4d7f373db571a;hb=4ff7e37b4f7e336a8ecb7080b8f48eef4b52d396;hp=13c829afb56e4ad27ace276137546a6313a8a7bf;hpb=82571fb5d1c9093fd2387fc4a35a9f6fe5d541f4;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c index 13c829afb5..b54d8e1f28 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c @@ -226,8 +226,8 @@ CharToUpper ( Function returns a system configuration table that is stored in the EFI System Table based on the provided GUID. - @param[in] TableGuid A pointer to the table's GUID type. - @param[in,out] Table On exit, a pointer to a system configuration table. + @param[in] TableGuid A pointer to the table's GUID type. + @param[in, out] Table On exit, a pointer to a system configuration table. @retval EFI_SUCCESS A configuration table matching TableGuid was found. @retval EFI_NOT_FOUND A configuration table matching TableGuid was not found. @@ -281,8 +281,8 @@ HexCharToUintn ( /** Convert a string representation of a guid to a Guid value. - @param[in] StringGuid The pointer to the string of a guid. - @param[in,out] Guid The pointer to the GUID structure to populate. + @param[in] StringGuid The pointer to the string of a guid. + @param[in, out] Guid The pointer to the GUID structure to populate. @retval EFI_INVALID_PARAMETER A parameter was invalid. @retval EFI_SUCCESS The conversion was successful. @@ -368,52 +368,6 @@ ConvertStringToGuid ( return (EFI_SUCCESS); } -CHAR16 TempBufferCatSPrint[1000]; -/** - Appends a formatted Unicode string to a Null-terminated Unicode string - - This function appends a formatted Unicode string to the Null-terminated - Unicode string specified by String. String is optional and may be NULL. - Storage for the formatted Unicode string returned is allocated using - AllocateZeroPool(). The pointer to the appended string is returned. The caller - is responsible for freeing the returned string. - - If String is not NULL and not aligned on a 16-bit boundary, then ASSERT(). - If Format is NULL, then ASSERT(). - If Format is not aligned on a 16-bit boundary, then ASSERT(). - - @param String A null-terminated Unicode string. - @param FormatString A null-terminated Unicode format string. - @param ... The variable argument list whose contents are accessed based - on the format string specified by Format. - - @retval NULL There was not enough available memory. - @return Null terminated Unicode string is that is the formatted - string appended to String. - @sa CatVSPrint -**/ -CHAR16* -EFIAPI -CatSPrint ( - IN CONST CHAR16 *String OPTIONAL, - IN CONST CHAR16 *FormatString, - ... - ) -{ - VA_LIST Marker; - UINTN StringLength; - if (String != NULL) { - StrCpy(TempBufferCatSPrint, String); - } else { - *TempBufferCatSPrint = CHAR_NULL; - } - VA_START (Marker, FormatString); - StringLength = StrLen(TempBufferCatSPrint); - - UnicodeVSPrint(TempBufferCatSPrint+StrLen(TempBufferCatSPrint), 1000-StringLength, FormatString, Marker); - return (AllocateCopyPool(StrSize(TempBufferCatSPrint), TempBufferCatSPrint)); -} - /** Clear the line at the specified Row.