]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
ShellPkg: Correct files with CRLF line ending
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SmbiosView / QueryTable.c
index b91ae360caac8151f607216d23bbbe2ab6ab3e77..d0106c0b55158914d6adcea97c047cabd2f35b07 100644 (file)
@@ -3,6 +3,7 @@
   And give a interface of query a string out of a table.\r
 \r
   Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -2303,6 +2304,26 @@ TABLE_ITEM  MemoryDeviceTypeTable[] = {
   {\r
     0x19,\r
     L"  FBD2"\r
+  },\r
+  {\r
+    0x1A,\r
+    L"  DDR4"\r
+  },\r
+  {\r
+    0x1B,\r
+    L"  LPDDR"\r
+  },\r
+  {\r
+    0x1C,\r
+    L"  LPDDR2"\r
+  },\r
+  {\r
+    0x1D,\r
+    L"  LPDDR3"\r
+  },\r
+  {\r
+    0x1E,\r
+    L"  LPDDR4"\r
   }\r
 };\r
 \r
@@ -3229,13 +3250,13 @@ QueryTable (
     //\r
     if ((High > Low && Key >= Low && Key <= High) \r
       || (Table[Index].Key == Key)) {\r
-      StrnCpy (Info, Table[Index].Info, InfoLen-1);\r
-      StrnCat (Info, L"\n", InfoLen - 1 - StrLen(Info));\r
+      StrnCpyS (Info, InfoLen, Table[Index].Info, InfoLen - 1);\r
+      StrnCatS (Info, InfoLen, L"\n", InfoLen - 1 - StrLen(Info));\r
       return Key;\r
     }\r
   }\r
 \r
-  StrnCpy (Info, L"Undefined Value\n", InfoLen - 1);\r
+  StrCpyS (Info, InfoLen, L"Undefined Value\n");\r
   return QUERY_TABLE_UNFOUND;\r
 }\r
 \r