From 0977cfecd96addede0f374d8d1d8ac758f4f7fcd Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 8 Jan 2005 10:26:31 -0500 Subject: [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 --- src/H5E.c | 2 +- test/testerror.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5E.c b/src/H5E.c index 47c86df..eafa2a4 100644 --- a/src/H5E.c +++ b/src/H5E.c @@ -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 diff --git a/test/testerror.sh b/test/testerror.sh index c06df9e..fbf9f51 100644 --- a/test/testerror.sh +++ b/test/testerror.sh @@ -55,7 +55,7 @@ TEST() { shift # Run test. - TESTING $1 + TESTING $TEST_ERR ( echo "#############################" echo "Expected output for $TEST_ERR" -- cgit v0.12