summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-12 20:07:47 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:55 (GMT)
commit5640d832e40ab627faef705e1c3f223cfb990e24 (patch)
treeb17bfd5708a5c947c702409ce986d36a9d0fa18a /test
parent0afcd66d2b0908fc4ca0c60b48fac7312da886d8 (diff)
downloadhdf5-5640d832e40ab627faef705e1c3f223cfb990e24.zip
hdf5-5640d832e40ab627faef705e1c3f223cfb990e24.tar.gz
hdf5-5640d832e40ab627faef705e1c3f223cfb990e24.tar.bz2
Use HD prefix.
Diffstat (limited to 'test')
-rw-r--r--test/thread_id.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/thread_id.c b/test/thread_id.c
index 21be12d..af36625 100644
--- a/test/thread_id.c
+++ b/test/thread_id.c
@@ -32,12 +32,12 @@ my_errx(int code, const char *fmt, ...)
{
va_list ap;
- (void)fprintf(stderr, "thread_id: ");
- va_start(ap, fmt);
- (void)vfprintf(stderr, fmt, ap);
- va_end(ap);
- (void)fputc('\n', stderr);
- exit(code);
+ (void)HDfprintf(stderr, "thread_id: ");
+ HDva_start(ap, fmt);
+ (void)HDvfprintf(stderr, fmt, ap);
+ HDva_end(ap);
+ (void)HDfputc('\n', stderr);
+ HDexit(code);
}
#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS)
@@ -50,17 +50,17 @@ my_err(int code, const char *fmt, ...)
va_list ap;
int errno_copy = errno;
- (void)fprintf(stderr, "thread_id: ");
- va_start(ap, fmt);
- (void)vfprintf(stderr, fmt, ap);
- va_end(ap);
- (void)fprintf(stderr, ": %s\n", strerror(errno_copy));
- exit(code);
+ (void)HDfprintf(stderr, "thread_id: ");
+ HDva_start(ap, fmt);
+ (void)HDvfprintf(stderr, fmt, ap);
+ HDva_end(ap);
+ (void)HDfprintf(stderr, ": %s\n", HDstrerror(errno_copy));
+ HDexit(code);
}
#define threads_failure(_call, _result) do { \
my_errx(EXIT_FAILURE, "%s.%d: " #_call ": %s", __func__, \
- __LINE__, strerror(_result)); \
+ __LINE__, HDstrerror(_result)); \
} while (false)
#define NTHREADS 5