Skip to content

Commit da0c873

Browse files
committed
oob/tcp: enhance debugging output
display the hop node used to send a message (if the message is sent directly, then the hop is the destination) Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 6f7ed1f commit da0c873

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

orte/mca/oob/tcp/oob_tcp.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,6 @@ static void process_send(int fd, short args, void *cbdata)
394394
mca_oob_tcp_peer_t *peer;
395395
orte_process_name_t hop;
396396

397-
opal_output_verbose(2, orte_oob_base_framework.framework_output,
398-
"%s:[%s:%d] processing send to peer %s:%d seq_num = %d",
399-
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
400-
__FILE__, __LINE__,
401-
ORTE_NAME_PRINT(&op->msg->dst), op->msg->tag, op->msg->seq_num);
402397

403398
/* do we have a route to this peer (could be direct)? */
404399
hop = orte_routed.get_route(op->msg->routed, &op->msg->dst);
@@ -410,14 +405,21 @@ static void process_send(int fd, short args, void *cbdata)
410405
* to the framework so another component can try
411406
*/
412407
opal_output_verbose(2, orte_oob_base_framework.framework_output,
413-
"%s:[%s:%d] hop %s unknown",
408+
"%s:[%s:%d] processing send to peer %s:%d seq_num = %d hop %s unknown",
414409
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
415410
__FILE__, __LINE__,
411+
ORTE_NAME_PRINT(&op->msg->dst), op->msg->tag, op->msg->seq_num,
416412
ORTE_NAME_PRINT(&hop));
417413
ORTE_ACTIVATE_TCP_NO_ROUTE(op->msg, &hop, mca_oob_tcp_component_no_route);
418414
goto cleanup;
419415
}
420416

417+
opal_output_verbose(2, orte_oob_base_framework.framework_output,
418+
"%s:[%s:%d] processing send to peer %s:%d seq_num = %d via %s",
419+
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
420+
__FILE__, __LINE__,
421+
ORTE_NAME_PRINT(&op->msg->dst), op->msg->tag, op->msg->seq_num,
422+
ORTE_NAME_PRINT(&peer->name));
421423
/* add the msg to the hop's send queue */
422424
if (MCA_OOB_TCP_CONNECTED == peer->state) {
423425
opal_output_verbose(2, orte_oob_base_framework.framework_output,

0 commit comments

Comments
 (0)