summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-02-03 14:19:58 (GMT)
committerGitHub <noreply@github.com>2021-02-03 14:19:58 (GMT)
commiteac05994c71a98a302674ab425a43758ecac9fd8 (patch)
treef8bc966441cc9ec9e6fa20779b13e67bbf35860e
parentab2c31bc87fb10e7dd6d6d5846743664694287ed (diff)
downloadhdf5-eac05994c71a98a302674ab425a43758ecac9fd8.zip
hdf5-eac05994c71a98a302674ab425a43758ecac9fd8.tar.gz
hdf5-eac05994c71a98a302674ab425a43758ecac9fd8.tar.bz2
Fixes bin/trace so it doesn't dirty the repo when autogen runs (#295)
* Fixes bin/trace so it doesn't dirty the repo when autogen runs * Put the trace max back to 110 and comment off H5O.c line
-rwxr-xr-xbin/trace2
-rw-r--r--src/H5O.c5
-rw-r--r--src/H5TS.c4
3 files changed, 4 insertions, 7 deletions
diff --git a/bin/trace b/bin/trace
index 824c90d..f8c26a6 100755
--- a/bin/trace
+++ b/bin/trace
@@ -470,7 +470,7 @@ for $file (@ARGV) {
$file_args = 0;
# Ignore some files that do not need tracing macros
- unless ($file eq "H5FDmulti.c" or $file eq "src/H5FDmulti.c" or $file eq "H5FDstdio.c" or $file eq "src/H5FDstdio.c") {
+ unless ($file eq "H5FDmulti.c" or $file eq "src/H5FDmulti.c" or $file eq "H5FDstdio.c" or $file eq "src/H5FDstdio.c" or $file eq "src/H5TS.c") {
# Snarf up the entire file
open SOURCE, $file or die "$file: $!\n";
diff --git a/src/H5O.c b/src/H5O.c
index 2cdb37d..7be332b 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -1188,8 +1188,9 @@ H5Oget_info_by_name_async(const char *app_file, const char *app_func, unsigned a
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(FAIL)
- H5TRACE9("e", "*s*sIui*sxIuii", app_file, app_func, app_line, loc_id, name, oinfo, fields, lapl_id,
- es_id);
+ /* clang-format off */
+ H5TRACE9("e", "*s*sIui*sxIuii", app_file, app_func, app_line, loc_id, name, oinfo, fields, lapl_id, es_id);
+ /* clang-format on */
/* Set up request token pointer for asynchronous operation */
if (H5ES_NONE != es_id)
diff --git a/src/H5TS.c b/src/H5TS.c
index 6c4bb63..c5b2660 100644
--- a/src/H5TS.c
+++ b/src/H5TS.c
@@ -408,8 +408,6 @@ herr_t
H5TSmutex_acquire(unsigned int lock_count, hbool_t *acquired){
FUNC_ENTER_API_NAMECHECK_ONLY
- /*NO TRACE*/
-
FUNC_LEAVE_API_NAMECHECK_ONLY(H5TS__mutex_acquire(&H5_g.init_lock, lock_count, acquired))}
/* end H5TSmutex_acquire() */
@@ -606,7 +604,6 @@ H5TSmutex_get_attempt_count(unsigned int *count)
herr_t ret_value = SUCCEED;
FUNC_ENTER_API_NAMECHECK_ONLY
- /*NO TRACE*/
#ifdef H5_HAVE_WIN_THREADS
/* Add Win32 equivalent here when async is supported */
@@ -644,7 +641,6 @@ H5TSmutex_release(unsigned int *lock_count)
herr_t ret_value = SUCCEED;
FUNC_ENTER_API_NAMECHECK_ONLY
- /*NO TRACE*/
*lock_count = 0;
if (0 != H5TS__mutex_unlock(&H5_g.init_lock, lock_count))