1
1

Fix the output of error strings. Every convertor is returning OPAL_SUCCESS, so you have to check each convertor to find which one this error belongs to, and then run ONLY that convertor.

This commit was SVN r25009.
Этот коммит содержится в:
Ralph Castain 2011-08-08 04:10:40 +00:00
родитель 4083dc617f
Коммит da9bbf68ec

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

@ -55,9 +55,11 @@ opal_strerror_int(int errnum, const char **str)
*str = NULL;
for (i = 0 ; i < MAX_CONVERTERS ; ++i) {
if (0 != converters[i].init) {
if (0 != converters[i].init &&
errnum < converters[i].err_base &&
converters[i].err_max < errnum) {
ret = converters[i].converter(errnum, str);
if (OPAL_SUCCESS == ret) break;
break;
}
}