* No need for warning aggregation here; orte_show_help() does that
for us already. * Slightly clarify the error message strings; now they match the new error strings for btl_openib_ipaddr_in|exclude This commit was SVN r21197.
Этот коммит содержится в:
родитель
cd6c6e6206
Коммит
f7f5603d5c
@ -391,7 +391,6 @@ static char **split_and_resolve(char **orig_str, char *name)
|
||||
char if_name[IF_NAMESIZE];
|
||||
struct sockaddr_storage argv_inaddr, if_inaddr;
|
||||
uint32_t argv_prefix;
|
||||
bool warning_shown = false;
|
||||
|
||||
/* Sanity check */
|
||||
if (NULL == orig_str || NULL == *orig_str) {
|
||||
@ -414,12 +413,9 @@ static char **split_and_resolve(char **orig_str, char *name)
|
||||
tmp = strdup(argv[i]);
|
||||
str = strchr(argv[i], '/');
|
||||
if (NULL == str) {
|
||||
if (!warning_shown) {
|
||||
orte_show_help("help-mpi-btl-tcp.txt", "invalid if_include",
|
||||
true, name, orte_process_info.nodename,
|
||||
tmp, "Missing \"/\"");
|
||||
warning_shown = true;
|
||||
}
|
||||
orte_show_help("help-mpi-btl-tcp.txt", "invalid if_inexclude",
|
||||
true, name, orte_process_info.nodename,
|
||||
tmp, "Invalid specification (missing \"/\")");
|
||||
free(argv[i]);
|
||||
free(tmp);
|
||||
continue;
|
||||
@ -434,12 +430,9 @@ static char **split_and_resolve(char **orig_str, char *name)
|
||||
free(argv[i]);
|
||||
|
||||
if (1 != ret) {
|
||||
if (!warning_shown) {
|
||||
orte_show_help("help-mpi-btl-tcp.txt", "invalid if_include",
|
||||
true, name, orte_process_info.nodename, tmp,
|
||||
"inet_pton() failed");
|
||||
warning_shown = true;
|
||||
}
|
||||
orte_show_help("help-mpi-btl-tcp.txt", "invalid if_inexclude",
|
||||
true, name, orte_process_info.nodename, tmp,
|
||||
"Invalid specification (inet_pton() failed)");
|
||||
free(tmp);
|
||||
continue;
|
||||
}
|
||||
@ -464,12 +457,9 @@ static char **split_and_resolve(char **orig_str, char *name)
|
||||
|
||||
/* If we didn't find a match, keep trying */
|
||||
if (if_index < 0) {
|
||||
if (!warning_shown) {
|
||||
orte_show_help("help-mpi-btl-tcp.txt", "invalid if_include",
|
||||
true, name, orte_process_info.nodename, tmp,
|
||||
"Did not find interface matching this subnet");
|
||||
warning_shown = true;
|
||||
}
|
||||
orte_show_help("help-mpi-btl-tcp.txt", "invalid if_inexclude",
|
||||
true, name, orte_process_info.nodename, tmp,
|
||||
"Did not find interface matching this subnet");
|
||||
free(tmp);
|
||||
continue;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
# This is the US/English help file for Open MPI's TCP support
|
||||
# (the openib BTL).
|
||||
#
|
||||
[invalid if_include]
|
||||
[invalid if_inexclude]
|
||||
WARNING: An invalid value was given for btl_tcp_if_%s. This
|
||||
value will be ignored.
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user