]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove the redundancy commas when converting the SASEx device path node to text.
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 20 Dec 2011 05:01:05 +0000 (05:01 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 20 Dec 2011 05:01:05 +0000 (05:01 +0000)
Signed-off-by: niruiyu
Reviewed-by: jjin9
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12888 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c

index 2cfd6730d217264fe721d713e4f67ffb7d9a3882..1f90f64204a79b370aad39734307686a1934a93b 100644 (file)
@@ -690,7 +690,7 @@ DevPathToTextSasEx (
   CatPrint (Str, L",0x%x,", SasEx->RelativeTargetPort);\r
 \r
   if ((SasEx->DeviceTopology & 0x0f) == 0) {\r
-    CatPrint (Str, L"NoTopology,0,0,0,");\r
+    CatPrint (Str, L"NoTopology,0,0,0");\r
   } else if (((SasEx->DeviceTopology & 0x0f) == 1) || ((SasEx->DeviceTopology & 0x0f) == 2)) {\r
     CatPrint (\r
       Str,\r
@@ -700,12 +700,12 @@ DevPathToTextSasEx (
       ((SasEx->DeviceTopology & (0x1 << 6)) != 0) ? L"Expanded" : L"Direct"\r
       );\r
     if ((SasEx->DeviceTopology & 0x0f) == 1) {\r
-      CatPrint (Str, L"0,");\r
+      CatPrint (Str, L"0");\r
     } else {\r
-      CatPrint (Str, L"0x%x,", (SasEx->DeviceTopology >> 8) & 0xff);\r
+      CatPrint (Str, L"0x%x", (SasEx->DeviceTopology >> 8) & 0xff);\r
     }\r
   } else {\r
-    CatPrint (Str, L"0,0,0,0,");\r
+    CatPrint (Str, L"0,0,0,0");\r
   }\r
 \r
   CatPrint (Str, L")");\r