Cleanup warnings for uninitialized vars and convert bare debug output to verbose
Этот коммит содержится в:
родитель
0d4a6d7326
Коммит
96cd42699e
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2012-2013 Los Alamos National Security, LLC.
|
* Copyright (c) 2012-2013 Los Alamos National Security, LLC.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2014 Intel, Inc. All rights reserved
|
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved
|
||||||
* Copyright (c) 2014-2015 Research Organization for Information Science
|
* Copyright (c) 2014-2015 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
@ -446,20 +446,23 @@ static void process_opens(int fd, short args, void *cbdata)
|
|||||||
orte_dfs_request_t *dfs = (orte_dfs_request_t*)cbdata;
|
orte_dfs_request_t *dfs = (orte_dfs_request_t*)cbdata;
|
||||||
int rc;
|
int rc;
|
||||||
opal_buffer_t *buffer;
|
opal_buffer_t *buffer;
|
||||||
char *scheme, *host, *filename;
|
char *scheme, *host=NULL, *filename=NULL;
|
||||||
orte_process_name_t daemon;
|
orte_process_name_t daemon;
|
||||||
bool found;
|
bool found;
|
||||||
orte_vpid_t v;
|
orte_vpid_t v;
|
||||||
opal_list_t myvals;
|
opal_list_t myvals;
|
||||||
opal_value_t *kv;
|
opal_value_t *kv;
|
||||||
|
|
||||||
opal_output(0, "%s PROCESSING OPEN", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));
|
opal_output_verbose(1, orte_dfs_base_framework.framework_output,
|
||||||
|
"%s PROCESSING OPEN", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));
|
||||||
|
|
||||||
/* get the scheme to determine if we can process locally or not */
|
/* get the scheme to determine if we can process locally or not */
|
||||||
if (NULL == (scheme = opal_uri_get_scheme(dfs->uri))) {
|
if (NULL == (scheme = opal_uri_get_scheme(dfs->uri))) {
|
||||||
ORTE_ERROR_LOG(ORTE_ERR_BAD_PARAM);
|
ORTE_ERROR_LOG(ORTE_ERR_BAD_PARAM);
|
||||||
goto complete;
|
goto complete;
|
||||||
}
|
}
|
||||||
opal_output(0, "%s GOT SCHEME", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));
|
opal_output_verbose(1, orte_dfs_base_framework.framework_output,
|
||||||
|
"%s GOT SCHEME", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));
|
||||||
|
|
||||||
if (0 != strcmp(scheme, "file")) {
|
if (0 != strcmp(scheme, "file")) {
|
||||||
/* not yet supported */
|
/* not yet supported */
|
||||||
@ -474,7 +477,8 @@ static void process_opens(int fd, short args, void *cbdata)
|
|||||||
if (NULL == (filename = opal_filename_from_uri(dfs->uri, &host))) {
|
if (NULL == (filename = opal_filename_from_uri(dfs->uri, &host))) {
|
||||||
goto complete;
|
goto complete;
|
||||||
}
|
}
|
||||||
opal_output(0, "%s GOT FILENAME %s", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), filename);
|
opal_output_verbose(1, orte_dfs_base_framework.framework_output,
|
||||||
|
"%s GOT FILENAME %s", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), filename);
|
||||||
if (NULL == host) {
|
if (NULL == host) {
|
||||||
host = strdup(orte_process_info.nodename);
|
host = strdup(orte_process_info.nodename);
|
||||||
}
|
}
|
||||||
@ -497,7 +501,8 @@ static void process_opens(int fd, short args, void *cbdata)
|
|||||||
kv = (opal_value_t*)opal_list_get_first(&myvals);
|
kv = (opal_value_t*)opal_list_get_first(&myvals);
|
||||||
hostname = kv->data.string;
|
hostname = kv->data.string;
|
||||||
OPAL_LIST_DESTRUCT(&myvals);
|
OPAL_LIST_DESTRUCT(&myvals);
|
||||||
opal_output(0, "%s GOT HOST %s HOSTNAME %s", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), host, hostname);
|
opal_output_verbose(1, orte_dfs_base_framework.framework_output,
|
||||||
|
"%s GOT HOST %s HOSTNAME %s", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), host, hostname);
|
||||||
if (0 == strcmp(host, hostname)) {
|
if (0 == strcmp(host, hostname)) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user