]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
Code scrub DxeIpl, Runtime, DevicePath, FvbServicesLib, DiskIo, Partition, English...
[mirror_edk2.git] / MdeModulePkg / Universal / DevicePathDxe / DevicePathToText.c
index 5de21b1f9d9b954bf2eebac25c0d986d88fcbfe7..2e4a976adc397aa93a05dd55bb965b7d92306383 100644 (file)
@@ -55,10 +55,10 @@ CatPrint (
     Size = StrSize (AppendStr) - sizeof (UINT16);\r
     Size = Size + StrSize (Str->Str);\r
     Str->Str = ReallocatePool (\r
-                StrSize (Str->Str),\r
-                Size,\r
-                Str->Str\r
-                );\r
+                 StrSize (Str->Str),\r
+                 Size,\r
+                 Str->Str\r
+                 );\r
     ASSERT (Str->Str != NULL);\r
   }\r
 \r
@@ -73,9 +73,9 @@ CatPrint (
 }\r
 \r
 /**\r
-  Converts a PCI device path structure to its string representive.\r
+  Converts a PCI device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -100,9 +100,9 @@ DevPathToTextPci (
 }\r
 \r
 /**\r
-  Converts a PC Card device path structure to its string representive.\r
+  Converts a PC Card device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -127,9 +127,9 @@ DevPathToTextPccard (
 }\r
 \r
 /**\r
-  Converts a Memory Map device path structure to its string representive.\r
+  Converts a Memory Map device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -160,9 +160,9 @@ DevPathToTextMemMap (
 }\r
 \r
 /**\r
-  Converts a Vendor device path structure to its string representive.\r
+  Converts a Vendor device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -208,7 +208,7 @@ DevPathToTextVendor (
       } else if (CompareGuid (&Vendor->Guid, &gEfiVTUTF8Guid)) {\r
         CatPrint (Str, L"VenUft8()");\r
         return ;\r
-      } else if (CompareGuid (&Vendor->Guid, &mEfiDevicePathMessagingUartFlowControlGuid)) {\r
+      } else if (CompareGuid (&Vendor->Guid, &gEfiUartDevicePathGuid)) {\r
         FlowControlMap = (((UART_FLOW_CONTROL_DEVICE_PATH *) Vendor)->FlowControlMap);\r
         switch (FlowControlMap & 0x00000003) {\r
         case 0:\r
@@ -228,7 +228,7 @@ DevPathToTextVendor (
         }\r
 \r
         return ;\r
-      } else if (CompareGuid (&Vendor->Guid, &mEfiDevicePathMessagingSASGuid)) {\r
+      } else if (CompareGuid (&Vendor->Guid, &gEfiSasDevicePathGuid)) {\r
         CatPrint (\r
           Str,\r
           L"SAS(0x%lx,0x%lx,0x%x,",\r
@@ -287,9 +287,9 @@ DevPathToTextVendor (
 }\r
 \r
 /**\r
-  Converts a Controller device path structure to its string representive.\r
+  Converts a Controller device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -318,9 +318,9 @@ DevPathToTextController (
 }\r
 \r
 /**\r
-  Converts a ACPI device path structure to its string representive.\r
+  Converts a ACPI device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -404,9 +404,9 @@ EisaIdToText (
 }\r
 \r
 /**\r
-  Converts a ACPI extended HID device path structure to its string representive.\r
+  Converts a ACPI extended HID device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -488,9 +488,9 @@ DevPathToTextAcpiEx (
 }\r
 \r
 /**\r
-  Converts a ACPI address device path structure to its string representive.\r
+  Converts a ACPI address device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -525,9 +525,9 @@ DevPathToTextAcpiAdr (
 }\r
 \r
 /**\r
-  Converts a ATAPI device path structure to its string representive.\r
+  Converts a ATAPI device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -563,9 +563,9 @@ DevPathToTextAtapi (
 }\r
 \r
 /**\r
-  Converts a SCSI device path structure to its string representive.\r
+  Converts a SCSI device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -590,9 +590,9 @@ DevPathToTextScsi (
 }\r
 \r
 /**\r
-  Converts a Fibre device path structure to its string representive.\r
+  Converts a Fibre device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -617,9 +617,9 @@ DevPathToTextFibre (
 }\r
 \r
 /**\r
-  Converts a 1394 device path structure to its string representive.\r
+  Converts a 1394 device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -647,9 +647,9 @@ DevPathToText1394 (
 }\r
 \r
 /**\r
-  Converts a USB device path structure to its string representive.\r
+  Converts a USB device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -674,9 +674,9 @@ DevPathToTextUsb (
 }\r
 \r
 /**\r
-  Converts a USB WWID device path structure to its string representive.\r
+  Converts a USB WWID device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -723,9 +723,9 @@ DevPathToTextUsbWWID (
 }\r
 \r
 /**\r
-  Converts a Logic Unit device path structure to its string representive.\r
+  Converts a Logic Unit device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -750,9 +750,9 @@ DevPathToTextLogicalUnit (
 }\r
 \r
 /**\r
-  Converts a USB class device path structure to its string representive.\r
+  Converts a USB class device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -886,9 +886,9 @@ DevPathToTextUsbClass (
 }\r
 \r
 /**\r
-  Converts a SATA device path structure to its string representive.\r
+  Converts a SATA device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -919,9 +919,9 @@ DevPathToTextSata (
 }\r
 \r
 /**\r
-  Converts a I20 device path structure to its string representive.\r
+  Converts a I20 device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -946,9 +946,9 @@ DevPathToTextI2O (
 }\r
 \r
 /**\r
-  Converts a MAC address device path structure to its string representive.\r
+  Converts a MAC address device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -987,9 +987,9 @@ DevPathToTextMacAddr (
 }\r
 \r
 /**\r
-  Converts a IPv4 device path structure to its string representive.\r
+  Converts a IPv4 device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1039,9 +1039,9 @@ DevPathToTextIPv4 (
 }\r
 \r
 /**\r
-  Converts a IPv6 device path structure to its string representive.\r
+  Converts a IPv6 device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1127,9 +1127,9 @@ DevPathToTextIPv6 (
 }\r
 \r
 /**\r
-  Converts an Infini Band device path structure to its string representive.\r
+  Converts an Infini Band device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1162,9 +1162,9 @@ DevPathToTextInfiniBand (
 }\r
 \r
 /**\r
-  Converts a UART device path structure to its string representive.\r
+  Converts a UART device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1254,9 +1254,9 @@ DevPathToTextUart (
 }\r
 \r
 /**\r
-  Converts an iSCSI device path structure to its string representive.\r
+  Converts an iSCSI device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1302,9 +1302,9 @@ DevPathToTextiSCSI (
 }\r
 \r
 /**\r
-  Converts a Hard drive device path structure to its string representive.\r
+  Converts a Hard drive device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1360,9 +1360,9 @@ DevPathToTextHardDrive (
 }\r
 \r
 /**\r
-  Converts a CDROM device path structure to its string representive.\r
+  Converts a CDROM device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1392,9 +1392,9 @@ DevPathToTextCDROM (
 }\r
 \r
 /**\r
-  Converts a File device path structure to its string representive.\r
+  Converts a File device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1419,9 +1419,9 @@ DevPathToTextFilePath (
 }\r
 \r
 /**\r
-  Converts a Media protocol device path structure to its string representive.\r
+  Converts a Media protocol device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1446,9 +1446,9 @@ DevPathToTextMediaProtocol (
 }\r
 \r
 /**\r
-  Converts a Firmware Volume device path structure to its string representive.\r
+  Converts a Firmware Volume device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1473,9 +1473,9 @@ DevPathToTextFv (
 }\r
 \r
 /**\r
-  Converts a Firmware Volume File device path structure to its string representive.\r
+  Converts a Firmware Volume File device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1500,9 +1500,9 @@ DevPathToTextFvFile (
 }\r
 \r
 /**\r
-  Converts a BIOS Boot Specification device path structure to its string representive.\r
+  Converts a BIOS Boot Specification device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1569,9 +1569,9 @@ DevPathToTextBBS (
 }\r
 \r
 /**\r
-  Converts an End-of-Device-Path structure to its string representive.\r
+  Converts an End-of-Device-Path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r
@@ -1593,9 +1593,9 @@ DevPathToTextEndInstance (
 }\r
 \r
 /**\r
-  Converts an unknown device path structure to its string representive.\r
+  Converts an unknown device path structure to its string representative.\r
 \r
-  @param Str             The string representive of input device.\r
+  @param Str             The string representative of input device.\r
   @param DevPath         The input device path structure.\r
   @param DisplayOnly     If DisplayOnly is TRUE, then the shorter text representation\r
                          of the display node is used, where applicable. If DisplayOnly\r