mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-20 20:24:28 +02:00
ArmPlatformPkg/ArmVExpressFastBootDxe: eliminate deprecated string functions
Get rid of functions that are no longer available when defining DISABLE_NEW_DEPRECATED_INTERFACES Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
parent
252abf12e9
commit
5211ece936
@ -273,7 +273,7 @@ ArmFastbootPlatformInit (
|
|||||||
|
|
||||||
// Copy handle and partition name
|
// Copy handle and partition name
|
||||||
Entry->PartitionHandle = AllHandles[LoopIndex];
|
Entry->PartitionHandle = AllHandles[LoopIndex];
|
||||||
StrnCpy (
|
CopyMem (
|
||||||
Entry->PartitionName,
|
Entry->PartitionName,
|
||||||
PartitionEntries[PartitionNode->PartitionNumber - 1].PartitionName, // Partition numbers start from 1.
|
PartitionEntries[PartitionNode->PartitionNumber - 1].PartitionName, // Partition numbers start from 1.
|
||||||
PARTITION_NAME_MAX_LENGTH
|
PARTITION_NAME_MAX_LENGTH
|
||||||
@ -341,7 +341,8 @@ ArmFastbootPlatformFlashPartition (
|
|||||||
CHAR16 PartitionNameUnicode[60];
|
CHAR16 PartitionNameUnicode[60];
|
||||||
BOOLEAN PartitionFound;
|
BOOLEAN PartitionFound;
|
||||||
|
|
||||||
AsciiStrToUnicodeStr (PartitionName, PartitionNameUnicode);
|
AsciiStrToUnicodeStrS (PartitionName, PartitionNameUnicode,
|
||||||
|
ARRAY_SIZE (PartitionNameUnicode));
|
||||||
|
|
||||||
PartitionFound = FALSE;
|
PartitionFound = FALSE;
|
||||||
Entry = (FASTBOOT_PARTITION_LIST *) GetFirstNode (&(mPartitionListHead));
|
Entry = (FASTBOOT_PARTITION_LIST *) GetFirstNode (&(mPartitionListHead));
|
||||||
@ -445,7 +446,7 @@ ArmFastbootPlatformGetVar (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (AsciiStrCmp (Name, "product")) {
|
if (AsciiStrCmp (Name, "product")) {
|
||||||
AsciiStrCpy (Value, FixedPcdGetPtr (PcdFirmwareVendor));
|
AsciiStrCpyS (Value, 61, FixedPcdGetPtr (PcdFirmwareVendor));
|
||||||
} else {
|
} else {
|
||||||
*Value = '\0';
|
*Value = '\0';
|
||||||
}
|
}
|
||||||
@ -479,7 +480,7 @@ ArmFastbootPlatformOemCommand (
|
|||||||
{
|
{
|
||||||
CHAR16 CommandUnicode[65];
|
CHAR16 CommandUnicode[65];
|
||||||
|
|
||||||
AsciiStrToUnicodeStr (Command, CommandUnicode);
|
AsciiStrToUnicodeStrS (Command, CommandUnicode, ARRAY_SIZE (CommandUnicode));
|
||||||
|
|
||||||
if (AsciiStrCmp (Command, "Demonstrate") == 0) {
|
if (AsciiStrCmp (Command, "Demonstrate") == 0) {
|
||||||
DEBUG ((EFI_D_ERROR, "ARM OEM Fastboot command 'Demonstrate' received.\n"));
|
DEBUG ((EFI_D_ERROR, "ARM OEM Fastboot command 'Demonstrate' received.\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user