Improve warning for terminated threads

with non-zero return code.
This commit is contained in:
Carsten Grohmann 2021-06-17 20:58:43 +02:00 committed by Andrew Gaul
parent 7a488b93d0
commit 1e0e2752bf

View File

@ -133,7 +133,7 @@ int S3fsMultiCurl::MultiPerform()
} else { } else {
int int_retval = (int)(intptr_t)(retval); int int_retval = (int)(intptr_t)(retval);
if (int_retval && !(int_retval == -ENOENT && isMultiHead)) { if (int_retval && !(int_retval == -ENOENT && isMultiHead)) {
S3FS_PRN_WARN("thread failed - rc(%d)", int_retval); S3FS_PRN_WARN("thread terminated with non-zero return code: %d", int_retval);
} }
} }
} }
@ -169,7 +169,7 @@ int S3fsMultiCurl::MultiPerform()
} else { } else {
int int_retval = (int)(intptr_t)(retval); int int_retval = (int)(intptr_t)(retval);
if (int_retval && !(int_retval == -ENOENT && isMultiHead)) { if (int_retval && !(int_retval == -ENOENT && isMultiHead)) {
S3FS_PRN_WARN("thread failed - rc(%d)", int_retval); S3FS_PRN_WARN("thread terminated with non-zero return code: %d", int_retval);
} }
} }
} }