From a459659a332b56a7f2b154e63431a75ade669e22 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Mon, 17 Oct 2005 20:47:44 +0000 Subject: [PATCH] Print the string name of the return code This commit was SVN r7789. --- ompi/runtime/help-mpi-runtime.txt | 2 +- ompi/runtime/ompi_mpi_init.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ompi/runtime/help-mpi-runtime.txt b/ompi/runtime/help-mpi-runtime.txt index f95fcb908f..b1c9f7315c 100644 --- a/ompi/runtime/help-mpi-runtime.txt +++ b/ompi/runtime/help-mpi-runtime.txt @@ -25,7 +25,7 @@ additional information (which may only be relevant to an Open MPI developer): %s - --> Returned value %d instead of OMPI_SUCCESS + --> Returned "%s" (%d) instead of "Success" (0) [mpi-param-check-enabled-but-compiled-out] WARNING: The MCA parameter mpi_param_check has been set to true, but parameter checking has been compiled out of Open MPI. The diff --git a/ompi/runtime/ompi_mpi_init.c b/ompi/runtime/ompi_mpi_init.c index 2847fff3d2..6a72ea30a4 100644 --- a/ompi/runtime/ompi_mpi_init.c +++ b/ompi/runtime/ompi_mpi_init.c @@ -492,9 +492,10 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided) error: if (ret != OMPI_SUCCESS) { + const char *err_msg = opal_strerror(ret); opal_show_help("help-mpi-runtime", "mpi_init:startup:internal-failure", true, - "MPI_INIT", "MPI_INIT", error, ret); + "MPI_INIT", "MPI_INIT", error, err_msg, ret); return ret; }