summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-20 05:01:05 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-20 05:01:05 +0000
commit665e08a0ca7e2c9a64eb86036913e87298d86277 (patch)
treeb97638fb69d258751b7acfd8ac4cfef6ccc952c7 /MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
parent119c168869c72492482c56ad9589e08f8ae6e916 (diff)
downloadedk2-665e08a0ca7e2c9a64eb86036913e87298d86277.zip
edk2-665e08a0ca7e2c9a64eb86036913e87298d86277.tar.gz
edk2-665e08a0ca7e2c9a64eb86036913e87298d86277.tar.bz2
Remove the redundancy commas when converting the SASEx device path node to text.
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
Diffstat (limited to 'MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c')
-rw-r--r--MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c b/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
index 2cfd673..1f90f64 100644
--- a/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
+++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
@@ -690,7 +690,7 @@ DevPathToTextSasEx (
CatPrint (Str, L",0x%x,", SasEx->RelativeTargetPort);
if ((SasEx->DeviceTopology & 0x0f) == 0) {
- CatPrint (Str, L"NoTopology,0,0,0,");
+ CatPrint (Str, L"NoTopology,0,0,0");
} else if (((SasEx->DeviceTopology & 0x0f) == 1) || ((SasEx->DeviceTopology & 0x0f) == 2)) {
CatPrint (
Str,
@@ -700,12 +700,12 @@ DevPathToTextSasEx (
((SasEx->DeviceTopology & (0x1 << 6)) != 0) ? L"Expanded" : L"Direct"
);
if ((SasEx->DeviceTopology & 0x0f) == 1) {
- CatPrint (Str, L"0,");
+ CatPrint (Str, L"0");
} else {
- CatPrint (Str, L"0x%x,", (SasEx->DeviceTopology >> 8) & 0xff);
+ CatPrint (Str, L"0x%x", (SasEx->DeviceTopology >> 8) & 0xff);
}
} else {
- CatPrint (Str, L"0,0,0,0,");
+ CatPrint (Str, L"0,0,0,0");
}
CatPrint (Str, L")");