]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.uni
ShellPkg/Dp: Add null pointer check
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / UefiShellDebug1CommandsLib.uni
index 06865a42a292387951a14eb6061373d54b488d3e..b6a133a45444e1306ff81cae3100cebce65d728e 100644 (file)
@@ -1,6 +1,6 @@
 // /**\r
 //\r
-// Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
 // (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
 // (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
 // This program and the accompanying materials\r
@@ -32,6 +32,7 @@
 \r
 #string STR_GEN_PROBLEM           #language en-US "%H%s%N: Unknown flag - '%H%s%N'\r\n"\r
 #string STR_GEN_PROBLEM_VAL       #language en-US "%H%s%N: Bad value - '%H%s%N' for flag - '%H%s%N'\r\n"\r
+#string STR_GEN_DUPLICATE         #language en-US "%H%s%N: Duplicate flag - '%H%s%N'\r\n"\r
 #string STR_GEN_NO_VALUE          #language en-US "%H%s%N: Missing argument for flag - '%H%s%N'\r\n"\r
 #string STR_GEN_TOO_FEW           #language en-US "%H%s%N: Too few arguments.\r\n"\r
 #string STR_GEN_TOO_MANY          #language en-US "%H%s%N: Too many arguments.\r\n"\r
@@ -39,7 +40,7 @@
 #string STR_GEN_PCIRBIO_NF        #language en-US "%H%s%N: Protocol - PciRootBridgeIo not found.\r\n"\r
 #string STR_GEN_PCIRBIO_ER        #language en-US "%H%s%N: Problem accessing the data using Protocol - PciRootBridgeIo\r\n"\r
 #string STR_GEN_PARAM_INV         #language en-US "%H%s%N: Invalid argument - '%H%s%N'\r\n"\r
-#string STR_GEN_PARAM_INV_HEX     #language en-US "%H%s%N: Invalid parameter - '%H%s%N:'.  Must be hexadecimal.\r\n"\r
+#string STR_GEN_PARAM_INV_HEX     #language en-US "%H%s%N: Invalid parameter - '%H%s%N'. Must be hexadecimal.\r\n"\r
 #string STR_GEN_PARAM_CONFLICT    #language en-US "%H%s%N: Flags conflict with - '%H%s%N' and '%H%s%N'\r\n"\r
 #string STR_GEN_OUT_MEM           #language en-US "%H%s%N: Memory allocation was not successful.\r\n"\r
 #string STR_GEN_MAP_PROTOCOL      #language en-US "%H%s%N: Mapped device '%B%s%N' does not have protocol %B%s%N\r\n"\r
 #string STR_DBLK_HEADER           #language en-US "LBA %016LX Size %08x bytes BlkIo %0x\r\n"\r
 \r
 #string STR_COMP_HEADER           #language en-US "Compare %s to %s.\r\n"\r
-#string STR_COMP_SIZE_FAIL        #language en-US "Difference # 1: File size mismatch.\r\n"\r
-#string STR_COMP_SPOT_FAIL1       #language en-US ""\r
-                                                  "Difference #% 2d:\r\n"\r
-                                                  "File1: %s\r\n"\r
-                                                  "  %08x: %02x                               *%c*\r\n"\r
-                                                  "File2: %s\r\n"\r
-                                                  "  %08x: %02x                               *%c*\r\n"\r
-#string STR_COMP_SPOT_FAIL2       #language en-US ""\r
-                                                  "Difference #% 2d:\r\n"\r
-                                                  "File1: %s\r\n"\r
-                                                  "  %08x: %02x %02x                            *%c%c*\r\n"\r
-                                                  "File2: %s\r\n"\r
-                                                  "  %08x: %02x %02x                            *%c%c*\r\n"\r
-#string STR_COMP_SPOT_FAIL3       #language en-US ""\r
-                                                  "Difference #% 2d:\r\n"\r
-                                                  "File1: %s\r\n"\r
-                                                  "  %08x: %02x %02x %02x                         *%c%c%c*\r\n"\r
-                                                  "File2: %s\r\n"\r
-                                                  "  %08x: %02x %02x %02x                         *%c%c%c*\r\n"\r
-#string STR_COMP_SPOT_FAIL4       #language en-US ""\r
-                                                  "Difference #% 2d:\r\n"\r
-                                                  "File1: %s\r\n"\r
-                                                  "  %08x: %02x %02x %02x %02x                      *%c%c%c%c*\r\n"\r
-                                                  "File2: %s\r\n"\r
-                                                  "  %08x: %02x %02x %02x %02x                      *%c%c%c%c*\r\n"\r
+#string STR_COMP_DIFFERENCE_POINT #language en-US "Difference #% 2u:\r\n"\r
+#string STR_COMP_END_OF_FILE      #language en-US " <EOF>"\r
 \r
 #string STR_COMP_FOOTER_FAIL      #language en-US "[difference(s) encountered] \r\n"\r
 #string STR_COMP_FOOTER_PASS      #language en-US "[no differences encountered]\r\n"\r
 #string STR_MEMMAP_GET_FAILED     #language en-US "%H%s%N: Unable to get memory map\r\n"\r
 #string STR_MEMMAP_LIST_HEAD      #language en-US "Type       Start            End              # Pages          Attributes\r\n"\r
 #string STR_MEMMAP_LIST_ITEM      #language en-US "% -10s %016LX-%016LX %016LX %016LX\r\n"\r
+#string STR_MEMMAP_LIST_ITEM_OTHER #language en-US "%08x   %016LX-%016LX %016LX %016LX\r\n"\r
 #string STR_MEMMAP_LIST_SUMM      #language en-US " \r\n"\r
                                                   "  Reserved  : %,14ld Pages (%,ld Bytes)\r\n"\r
                                                   "  LoaderCode: %,14ld Pages (%,ld Bytes)\r\n"\r
                                                   "  PalCode   : %,14ld Pages (%,ld Bytes)\r\n"\r
                                                   "  Available : %,14ld Pages (%,ld Bytes)\r\n"\r
                                                   "  Persistent: %,14ld Pages (%,ld Bytes)\r\n"\r
-                                                  "              -------------- \r\n"\r
+#string STR_MEMMAP_LIST_SUMM_OTHER #language en-US    "  %08x  : %,14ld Pages (%,ld Bytes)\r\n"\r
+#string STR_MEMMAP_LIST_SUMM2     #language en-US "              -------------- \r\n"\r
                                                   "Total Memory: %,14ld MB (%,ld Bytes)\r\n"\r
 #string STR_MEMMAP_LIST_ITEM_SFO  #language en-US "MemoryMap,"%s","%LX","%LX","%LX","%LX"\r\n"\r
 #string STR_MEMMAP_LIST_SUMM_SFO  #language en-US "MemoryMapSummary,"%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld","%Ld"\r\n"\r
 #string STR_DMPSTORE_LOAD_GEN_FAIL     #language en-US "%H%s%N: Failed to set variable %H%s%N: %r.\r\n"\r
 #string STR_DMPSTORE_LOAD_BAD_FILE     #language en-US "%H%s%N: Incorrect file format.\r\n"\r
 #string STR_DMPSTORE_HEADER_LINE       #language en-US "Variable %H%s%N '%H%g%N:%H%s%N' DataSize = 0x%02x\r\n"\r
+#string STR_DMPSTORE_HEADER_LINE2      #language en-US "Variable %H%s%N '%H%s%N:%H%s%N' DataSize = 0x%02x\r\n"\r
 #string STR_DMPSTORE_DELETE_LINE       #language en-US "Delete variable '%H%g%N:%H%s%N': %r\r\n"\r
 #string STR_DMPSTORE_NO_VAR_FOUND      #language en-US "%H%s%N: No matching variables found.\r\n"\r
 #string STR_DMPSTORE_NO_VAR_FOUND_SFO  #language en-US "VariableInfo,\"\",\"\",\"\",\"\",\"\"\r\n"\r
 "MM Address [Value] [-w 1|2|4|8] [-MEM | -MMIO | -IO | -PCI | -PCIE] [-n]\r\n"\r
 ".SH OPTIONS\r\n"\r
 " \r\n"\r
-"  Address - Specifies a starting address.\r\n"\r
-"  Value   - Specifies the value to write.\r\n"\r
+"  Address - Starting address in hexadecimal format.\r\n"\r
+"  Value   - The value to write in hexadecimal format.\r\n"\r
 "  -MEM    - Memory Address type\r\n"\r
 "  -MMIO   - Memory Mapped IO Address type\r\n"\r
 "  -IO     - IO Address type\r\n"\r
 "  -PCI    - PCI Configuration Space Address type:\r\n"\r
-"            Address format: 0x000000ssbbddffrr\r\n"\r
-"              ss   - Segment\r\n"\r
+"            Address format: ssssbbddffrr\r\n"\r
+"              ssss - Segment\r\n"\r
 "              bb   - Bus\r\n"\r
 "              dd   - Device\r\n"\r
 "              ff   - Function\r\n"\r
 "              rr   - Register\r\n"\r
 "  -PCIE   - PCIE Configuration Space Address type:\r\n"\r
-"            Address format: 0x00000ssbbddffrrr\r\n"\r
-"              ss   - Segment\r\n"\r
+"            Address format: ssssbbddffrrr\r\n"\r
+"              ssss - Segment\r\n"\r
 "              bb   - Bus\r\n"\r
 "              dd   - Device\r\n"\r
 "              ff   - Function\r\n"\r
 "      follow the PCI Configuration Space Address format above. The 'PCI'\r\n"\r
 "      command can be used to determine the address for a specified device.\r\n"\r
 "      It is listed in the PCI configuration space dump information in the\r\n"\r
-"      following format: "[EFI 0x000000ssbbddffxx]".\r\n"\r
+"      following format: "[EFI ssbbddffxx]".\r\n"\r
 "  5.  If the PCIE address type is specified, the 'Address' parameter must\r\n"\r
 "      follow the PCIE Configuration Space Address format above.\r\n"\r
 "  6.  In interactive mode, type a hex value to modify, 'q' or '.' to exit.\r\n"\r
 "    IO  0x0000000000000086 : 0xFF >\r\n"\r
 "    IO  0x0000000000000087 : 0x00 > q\r\n"\r
 " \r\n"\r
-"  * To display PCI configuration space, ss=00, bb=00, dd=00, ff=00, rr=00:\r\n"\r
-"    Shell> mm 0000000000 -PCI\r\n"\r
+"  * To display PCI configuration space, ss=0000, bb=00, dd=00, ff=00, rr=00:\r\n"\r
+"    Shell> mm 000000000000 -PCI\r\n"\r
 "    PCI  0x0000000000000000 : 0x86 >\r\n"\r
 "    PCI  0x0000000000000001 : 0x80 >\r\n"\r
 "    PCI  0x0000000000000002 : 0x30 >\r\n"\r
 "    PCI  0x0000000000000005 : 0x00 > q\r\n"\r
 "    These contents can also be displayed by 'PCI 00 00 00'.\r\n"\r
 " \r\n"\r
-"  * To display PCIE configuration space, ss=00, bb=06, dd=00, ff=00, rrr=000:\r\n"\r
-"    Shell> mm 00060000000 -PCIE\r\n"\r
+"  * To display PCIE configuration space, ss=0000, bb=06, dd=00, ff=00, rrr=000:\r\n"\r
+"    Shell> mm 0000060000000 -PCIE\r\n"\r
 "    PCIE  0x0000000060000000 : 0xAB >\r\n"\r
 "    PCIE  0x0000000060000001 : 0x11 >\r\n"\r
 "    PCIE  0x0000000060000002 : 0x61 >\r\n"\r
 #string STR_GET_HELP_PCI          #language en-US ""\r
 ".TH pci 0 "Displays PCI device information."\r\n"\r
 ".SH NAME\r\n"\r
-"Displays a PCI device list or PCI function configuration space of a device.\r\n"\r
+"Displays PCI device list or PCI function configuration space and PCIe extended\r\n"\r
+"configuration space.\r\n"\r
 ".SH SYNOPSIS\r\n"\r
 " \r\n"\r
-"PCI [Bus Dev [Func] [-s Seg] [-i]]\r\n"\r
+"PCI [Bus Dev [Func] [-s Seg] [-i [-ec ID]]]\r\n"\r
 ".SH OPTIONS\r\n"\r
 " \r\n"\r
-"  -s   - Specifies optional segment number.\r\n"\r
+"  -s   - Specifies optional segment number (hexadecimal number).\r\n"\r
 "  -i   - Displays interpreted information.\r\n"\r
-"  Bus  - Specifies a bus number.\r\n"\r
-"  Dev  - Specifies a device number.\r\n"\r
-"  Func - Specifies a function number.\r\n"\r
+"  -ec  - Displays detailed interpretation of specified PCIe extended capability\r\n"\r
+"         ID (hexadecimal number).\r\n"\r
+"  Bus  - Specifies a bus number (hexadecimal number).\r\n"\r
+"  Dev  - Specifies a device number (hexadecimal number).\r\n"\r
+"  Func - Specifies a function number (hexadecimal number).\r\n"\r
 ".SH DESCRIPTION\r\n"\r
 " \r\n"\r
 "NOTES:\r\n"\r
 "       40 - Additional Information\r\n"\r
 "       41 - Onboard Devices Extended Information\r\n"\r
 "       42 - Management Controller Host Interface\r\n"\r
+"       43 - TPM Device\r\n"\r
 "  2. Enter the SmbiosHandle parameter in hexadecimal format.\r\n"\r
 "     Do not use the '0x' prefix format for hexadecimal values.\r\n"\r
 "  3. Internal commands:\r\n"\r