]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/Command.c
EmbeddedPkg/Ebl: eliminate deprecated string function calls
[mirror_edk2.git] / EmbeddedPkg / Ebl / Command.c
index 7c00bcae85748505b4d02fe8fed0a40858cf2088..4bc1f4df0ca02e4be56014dd3ecdad98a9b24eb7 100644 (file)
@@ -3,6 +3,7 @@
 \r
   Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
   Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -256,6 +257,7 @@ CountNewLines (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblHelpCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -313,6 +315,7 @@ EblHelpCmd (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblExitCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -418,6 +421,7 @@ EblPauseCallback (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblPauseCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -452,6 +456,7 @@ EblPauseCmd (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblBreakPointCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -478,6 +483,7 @@ EblBreakPointCmd (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblResetCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -518,6 +524,7 @@ EblResetCmd (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblPageCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -542,6 +549,7 @@ EblPageCmd (
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EblSleepCmd (\r
   IN UINTN Argc,\r
   IN CHAR8 **Argv\r
@@ -606,7 +614,7 @@ OutputData (
   UINTN Spaces   = 0;\r
   CHAR8 Blanks[80];\r
 \r
-  AsciiStrCpy (Blanks, mBlanks);\r
+  AsciiStrCpyS (Blanks, sizeof Blanks, mBlanks);\r
   for (EndAddress = Address + Length; Address < EndAddress; Offset += Line) {\r
     AsciiPrint ("%08x: ", Offset);\r
     for (Line = 0; (Line < 0x10) && (Address < EndAddress);) {\r
@@ -644,9 +652,9 @@ OutputData (
           TextLine[Line++] = ConvertToTextLine(*Address++);\r
           break;\r
 \r
-                         default:\r
-                                 AsciiPrint ("Width must be 1, 2, or 4!\n");\r
-                                 return EFI_INVALID_PARAMETER;\r
+        default:\r
+          AsciiPrint ("Width must be 1, 2, or 4!\n");\r
+          return EFI_INVALID_PARAMETER;\r
       }\r
     }\r
 \r
@@ -741,6 +749,7 @@ WidthFromCommandName (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblHexdumpCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r