From f4ae2885e2ef66fa220e380bef5445ca46a55270 Mon Sep 17 00:00:00 2001 From: Ralph Castain <rhc@open-mpi.org> Date: Tue, 4 May 2010 13:44:33 +0000 Subject: [PATCH] Add new error constant This commit was SVN r23090. --- orte/include/orte/constants.h | 3 ++- orte/util/error_strings.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/orte/include/orte/constants.h b/orte/include/orte/constants.h index 0bec0b44b5..77fbc4ce37 100644 --- a/orte/include/orte/constants.h +++ b/orte/include/orte/constants.h @@ -101,7 +101,8 @@ enum { ORTE_ERR_SYS_LIMITS_SOCKETS = (ORTE_ERR_BASE - 29), ORTE_ERR_SOCKET_NOT_AVAILABLE = (ORTE_ERR_BASE - 30), ORTE_ERR_SYSTEM_WILL_BOOTSTRAP = (ORTE_ERR_BASE - 31), - ORTE_ERR_MODULE_NOT_FOUND = (ORTE_ERR_BASE - 32) + ORTE_ERR_MODULE_NOT_FOUND = (ORTE_ERR_BASE - 32), + ORTE_ERR_RELOCATE_LIMIT_EXCEEDED = (ORTE_ERR_BASE - 33) }; #define ORTE_ERR_MAX (ORTE_ERR_BASE - 100) diff --git a/orte/util/error_strings.c b/orte/util/error_strings.c index 36a5980a35..526f58758f 100644 --- a/orte/util/error_strings.c +++ b/orte/util/error_strings.c @@ -129,7 +129,10 @@ const char *orte_err2str(int errnum) case ORTE_ERR_MODULE_NOT_FOUND: retval = "Framework requires at least one active module, but none found"; break; - + case ORTE_ERR_RELOCATE_LIMIT_EXCEEDED: + retval = "Limit on number of process relocations was exceeded"; + break; + default: retval = NULL; }