1
1

Fix the pack/unpack of process state values by getting the actual packing size to match the new value size.

Improve the debug output by printing the string

This commit was SVN r23048.
Этот коммит содержится в:
Ralph Castain 2010-04-27 15:58:04 +00:00
родитель efc7d3e2f6
Коммит 401fb22847
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -40,6 +40,7 @@
#include "orte/constants.h"
#include "orte/types.h"
#include "orte/util/proc_info.h"
#include "orte/util/error_strings.h"
#include "orte/mca/errmgr/errmgr.h"
#include "orte/mca/rml/rml.h"
#include "orte/mca/rml/rml_types.h"
@ -432,9 +433,9 @@ static void process_msg(int fd, short event, void *data)
}
OPAL_OUTPUT_VERBOSE((5, orte_plm_globals.output,
"%s plm:base:receive got update_proc_state for vpid %lu state %x exit_code %d",
"%s plm:base:receive got update_proc_state for vpid %lu state %s exit_code %d",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
(unsigned long)vpid, (unsigned int)state, (int)exit_code));
(unsigned long)vpid, orte_proc_state_to_str(state), (int)exit_code));
/* update the state */
orte_errmgr.update_state(job, ORTE_JOB_STATE_UNDEF,

Просмотреть файл

@ -38,7 +38,7 @@ typedef int32_t orte_exit_code_t;
*/
typedef uint32_t orte_proc_state_t;
#define ORTE_PROC_STATE_T OPAL_UINT16
#define ORTE_PROC_STATE_T OPAL_UINT32
#define ORTE_PROC_STATE_UNDEF 0x00000000 /* undefined process state */
#define ORTE_PROC_STATE_INIT 0x00000001 /* process entry has been created by rmaps */