mtl ofi: show the positive value of the error
The value of ret is negative (e.g., -61), but it is displayed in the help message as `%zd`, which renders as unsigned (i.e., a giant positive value). So make sure to negate the negative value before rendering it (e.g., so we display "61", not "4294967235"). Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
родитель
e8c13ef286
Коммит
f910f554f7
@ -368,7 +368,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
|
||||
opal_show_help("help-mtl-ofi.txt", "OFI call fail", true,
|
||||
"fi_getinfo",
|
||||
ompi_process_info.nodename, __FILE__, __LINE__,
|
||||
fi_strerror(-ret), ret);
|
||||
fi_strerror(-ret), -ret);
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -397,7 +397,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
|
||||
opal_show_help("help-mtl-ofi.txt", "OFI call fail", true,
|
||||
"fi_fabric",
|
||||
ompi_process_info.nodename, __FILE__, __LINE__,
|
||||
fi_strerror(-ret), ret);
|
||||
fi_strerror(-ret), -ret);
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -414,7 +414,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
|
||||
opal_show_help("help-mtl-ofi.txt", "OFI call fail", true,
|
||||
"fi_domain",
|
||||
ompi_process_info.nodename, __FILE__, __LINE__,
|
||||
fi_strerror(-ret), ret);
|
||||
fi_strerror(-ret), -ret);
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -433,7 +433,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
|
||||
opal_show_help("help-mtl-ofi.txt", "OFI call fail", true,
|
||||
"fi_endpoint",
|
||||
ompi_process_info.nodename, __FILE__, __LINE__,
|
||||
fi_strerror(-ret), ret);
|
||||
fi_strerror(-ret), -ret);
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -617,7 +617,7 @@ finalize_err:
|
||||
opal_show_help("help-mtl-ofi.txt", "OFI call fail", true,
|
||||
"fi_close",
|
||||
ompi_process_info.nodename, __FILE__, __LINE__,
|
||||
fi_strerror(-ret), ret);
|
||||
fi_strerror(-ret), -ret);
|
||||
|
||||
return OMPI_ERROR;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user