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
This commit is contained in:
@@ -690,7 +690,7 @@ DevPathToTextSasEx (
|
|||||||
CatPrint (Str, L",0x%x,", SasEx->RelativeTargetPort);
|
CatPrint (Str, L",0x%x,", SasEx->RelativeTargetPort);
|
||||||
|
|
||||||
if ((SasEx->DeviceTopology & 0x0f) == 0) {
|
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)) {
|
} else if (((SasEx->DeviceTopology & 0x0f) == 1) || ((SasEx->DeviceTopology & 0x0f) == 2)) {
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
@@ -700,12 +700,12 @@ DevPathToTextSasEx (
|
|||||||
((SasEx->DeviceTopology & (0x1 << 6)) != 0) ? L"Expanded" : L"Direct"
|
((SasEx->DeviceTopology & (0x1 << 6)) != 0) ? L"Expanded" : L"Direct"
|
||||||
);
|
);
|
||||||
if ((SasEx->DeviceTopology & 0x0f) == 1) {
|
if ((SasEx->DeviceTopology & 0x0f) == 1) {
|
||||||
CatPrint (Str, L"0,");
|
CatPrint (Str, L"0");
|
||||||
} else {
|
} else {
|
||||||
CatPrint (Str, L"0x%x,", (SasEx->DeviceTopology >> 8) & 0xff);
|
CatPrint (Str, L"0x%x", (SasEx->DeviceTopology >> 8) & 0xff);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
CatPrint (Str, L"0,0,0,0,");
|
CatPrint (Str, L"0,0,0,0");
|
||||||
}
|
}
|
||||||
|
|
||||||
CatPrint (Str, L")");
|
CatPrint (Str, L")");
|
||||||
|
Reference in New Issue
Block a user