summaryrefslogtreecommitdiffstats
path: root/src/H5E.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-01-08 15:26:31 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-01-08 15:26:31 (GMT)
commit0977cfecd96addede0f374d8d1d8ac758f4f7fcd (patch)
tree9d76b7263d3f10874544b3f8e7a27c031163f8a9 /src/H5E.c
parent3e582deaae2095bb179e8d007ad6e72763e4bd0a (diff)
downloadhdf5-0977cfecd96addede0f374d8d1d8ac758f4f7fcd.zip
hdf5-0977cfecd96addede0f374d8d1d8ac758f4f7fcd.tar.gz
hdf5-0977cfecd96addede0f374d8d1d8ac758f4f7fcd.tar.bz2
[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
Diffstat (limited to 'src/H5E.c')
-rw-r--r--src/H5E.c2
1 files changed, 1 insertions, 1 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