From e41f86dfe6253456749e630cc4f5bf9300263e96 Mon Sep 17 00:00:00 2001 From: Tim Prins Date: Wed, 18 Jul 2007 15:20:55 +0000 Subject: [PATCH] add a small amount of debugging output This commit was SVN r15483. --- orte/mca/pls/rsh/pls_rsh_component.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/orte/mca/pls/rsh/pls_rsh_component.c b/orte/mca/pls/rsh/pls_rsh_component.c index 37e109f395..3a65b9c91a 100644 --- a/orte/mca/pls/rsh/pls_rsh_component.c +++ b/orte/mca/pls/rsh/pls_rsh_component.c @@ -228,12 +228,22 @@ orte_pls_base_module_t *orte_pls_rsh_component_init(int *priority) component */ if (NULL == mca_pls_rsh_component.agent_argv || NULL == mca_pls_rsh_component.agent_argv[0]) { + if (mca_pls_rsh_component.debug) { + opal_output(0, "pls:rsh: unable to be used: cannot find the " + "launching agent. Looked for: %s\n", + mca_pls_rsh_component.agent_param); + } return NULL; } mca_pls_rsh_component.agent_path = opal_path_findv(mca_pls_rsh_component.agent_argv[0], X_OK, environ, NULL); if (NULL == mca_pls_rsh_component.agent_path) { + if (mca_pls_rsh_component.debug) { + opal_output(0, "pls:rsh: unable to be used: cannot find path " + "for launching agent \"%s\"\n", + mca_pls_rsh_component.agent_argv[0]); + } return NULL; } *priority = mca_pls_rsh_component.priority;