Skip to content

Commit fabaae0

Browse files
lib/libmpi/MpiHost: print dotted notation of node IP address in startProcesses()
1 parent 667766d commit fabaae0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/libmpi/MpiHost.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ MpiHost::Result MpiHost::parseHostsFile(const char *hostsfile)
402402
}
403403
m_packetBuffers.insertAt(idx, lst);
404404

405-
NOTICE("m_nodes[" << idx << "]: ip = " << *nodeLine[0] << ", port = " << *nodeLine[1] <<
406-
", core = " << *nodeLine[2]);
405+
DEBUG("m_nodes[" << idx << "]: ip = " << *nodeLine[0] << ", port = " << *nodeLine[1] <<
406+
", core = " << *nodeLine[2]);
407407
}
408408

409409
// Cleanup
@@ -441,7 +441,10 @@ MpiHost::Result MpiHost::startProcesses(int argc,
441441

442442
for (Size i = 1; i < m_nodes.count(); i++)
443443
{
444-
NOTICE("nodes[" << i << "] = " << m_nodes[i]->ipAddress <<
444+
in_addr nodeAddr;
445+
nodeAddr.s_addr = m_nodes[i]->ipAddress;
446+
447+
NOTICE("nodes[" << i << "] = " << inet_ntoa(nodeAddr) <<
445448
":" << m_nodes[i]->udpPort << ":" << m_nodes[i]->coreId);
446449

447450
// Construct packet to send

0 commit comments

Comments
 (0)