[svn-r9780] Purpose:

Bug fix

Description:
    Print the thread ID in a little more portable of a fashion, disallowing
negative thread IDs.

Platforms tested:
    Linux 2.4 (heping) w/threadsafe
    Too Minor to require h5committest
This commit is contained in:
Quincey Koziol 2005-01-08 10:26:31 -05:00
parent 3e582deaae
commit 0977cfecd9
2 changed files with 2 additions and 2 deletions

View File

@ -2193,7 +2193,7 @@ H5E_walk_cb(unsigned n, const H5E_error_t *err_desc, void *client_data)
fprintf (stream, "thread 0");
}
#elif defined(H5_HAVE_THREADSAFE)
fprintf (stream, "thread %d", (int)pthread_self());
fprintf (stream, "thread %lu", (unsigned long)pthread_self());
#else
fprintf (stream, "thread 0");
#endif

View File

@ -55,7 +55,7 @@ TEST() {
shift
# Run test.
TESTING $1
TESTING $TEST_ERR
(
echo "#############################"
echo "Expected output for $TEST_ERR"