Skip to content

Commit a89820d

Browse files
authored
Merge pull request #263 from Mustafadall/revert-260-revert-256-issue/2038322
Revert "Revert "[mstlink] Fixing json format for valid pcie links""
2 parents 30267f2 + 9222b97 commit a89820d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlxlink/modules/mlxlink_commander.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,14 +1938,15 @@ void MlxlinkCommander::showPcieLinks()
19381938
throw MlxRegException("No valid DPN's detected!");
19391939
}
19401940
setPrintTitle(_validPcieLinks,"Valid PCIe Links", _validDpns.size()+1);
1941-
setPrintVal(_validPcieLinks, 0," ", "depth, pcie_index, node, port");
1941+
setPrintVal(_validPcieLinks, 0, "Legend",
1942+
"depth, pcie_index, node, port", ANSI_COLOR_RESET, true, true, true);
19421943
for(u_int32_t i = 0; i < _validDpns.size(); i++) {
19431944
char dpnStr [20];
19441945
int localPort = getLocalPortFromMPIR(_validDpns[i]);
19451946
sprintf(dpnStr,"%d, %d, %d, %d", _validDpns[i].depth,
19461947
_validDpns[i].pcieIndex, _validDpns[i].node, localPort);
19471948
setPrintVal(_validPcieLinks, i+1, "Link " + to_string(i+1), dpnStr,
1948-
ANSI_COLOR_RESET, localPort >= 0 );
1949+
ANSI_COLOR_RESET, localPort >= 0, true, true);
19491950
}
19501951
cout << _validPcieLinks;
19511952
} catch (const std::exception &exc) {

0 commit comments

Comments
 (0)