diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-01-08 15:26:31 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-01-08 15:26:31 (GMT) |
commit | 0977cfecd96addede0f374d8d1d8ac758f4f7fcd (patch) | |
tree | 9d76b7263d3f10874544b3f8e7a27c031163f8a9 /src/H5E.c | |
parent | 3e582deaae2095bb179e8d007ad6e72763e4bd0a (diff) | |
download | hdf5-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |