mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcMiscLib: Deprecate ConvertDataToString
This commit is contained in:
parent
18314c7182
commit
94bcf6983f
@ -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.
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -48,7 +48,6 @@
|
||||
|
||||
[Sources]
|
||||
Base64Decode.c
|
||||
ConvertDataToString.c
|
||||
DataPatcher.c
|
||||
DebugHelp.c
|
||||
LegacyRegionLock.c
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user