diff --git a/Include/Library/OcMiscLib.h b/Include/Library/OcMiscLib.h index ec4eafcb..dc71dc7c 100755 --- a/Include/Library/OcMiscLib.h +++ b/Include/Library/OcMiscLib.h @@ -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. diff --git a/Library/OcDataHubLib/OcDataHubLib.c b/Library/OcDataHubLib/OcDataHubLib.c index c5f84fe0..6245565e 100755 --- a/Library/OcDataHubLib/OcDataHubLib.c +++ b/Library/OcDataHubLib/OcDataHubLib.c @@ -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; diff --git a/Library/OcMiscLib/OcMiscLib.inf b/Library/OcMiscLib/OcMiscLib.inf index 0964a0ba..146041fe 100755 --- a/Library/OcMiscLib/OcMiscLib.inf +++ b/Library/OcMiscLib/OcMiscLib.inf @@ -48,7 +48,6 @@ [Sources] Base64Decode.c - ConvertDataToString.c DataPatcher.c DebugHelp.c LegacyRegionLock.c