OcMiscLib: Deprecate ConvertDataToString

This commit is contained in:
Download-Fritz 2019-03-18 19:56:44 +01:00
parent 18314c7182
commit 94bcf6983f
3 changed files with 1 additions and 28 deletions

View File

@ -45,20 +45,6 @@ OcBase64Decode (
IN OUT UINTN *DecodedLength
);
// ConvertDataToString
/** Attempt to convert the data into an ascii string.
@param[in] Data A pointer to the data to convert.
@param[in] DataSize The length of data to convert.
@retval An ascii string representing the data.
**/
CHAR8 *
ConvertDataToString (
IN CONST VOID *Data,
IN UINTN DataSize
);
// LegacyRegionlock
/** Lock the legacy region specified to enable modification.

View File

@ -179,7 +179,6 @@ SetDataHubEntry (
EFI_STATUS Status;
PLATFORM_DATA_HEADER *Entry;
CHAR8 *DataString;
UINT32 KeySize;
UINT32 TotalSize;
@ -208,26 +207,15 @@ SetDataHubEntry (
TotalSize
);
if (DataSize < 32) {
DataString = ConvertDataToString (Data, DataSize);
} else {
DataString = NULL;
}
DEBUG ((
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_INFO,
"Setting DataHub %g:%s = %a (%u) - %r\n",
"Setting DataHub %g:%s (%u) - %r\n",
&gApplePlatformProducerNameGuid,
Key,
DataString != NULL ? DataString : "<...>",
DataSize,
Status
));
if (DataString != NULL) {
FreePool (DataString);
}
FreePool (Entry);
return Status;

View File

@ -48,7 +48,6 @@
[Sources]
Base64Decode.c
ConvertDataToString.c
DataPatcher.c
DebugHelp.c
LegacyRegionLock.c