Skip to content

Commit

Permalink
DAOS-14532 gurt: Replace environment APIs hook
Browse files Browse the repository at this point in the history
Fix clang format coding standards.

Features: mpiio
Required-githooks: true
Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
  • Loading branch information
kanard38 authored and Cedric Koch-Hofer committed Jan 5, 2024
1 parent 2791b93 commit 534abe3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/gurt/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,8 @@ d_env_rwlock_rdlock()

rc = pthread_rwlock_rdlock(&d_env_lock);
if (rc != 0)
fprintf(stderr, "d_env_rwlock_rdlock(%p) rc=%d %s\n", &d_env_lock, rc, strerror(rc));
fprintf(stderr, "d_env_rwlock_rdlock(%p) rc=%d %s\n", &d_env_lock, rc,
strerror(rc));
assert(rc == 0);
}

Expand All @@ -995,7 +996,8 @@ d_env_rwlock_wrlock()

rc = pthread_rwlock_wrlock(&d_env_lock);
if (rc != 0)
fprintf(stderr, "d_env_rwlock_wrlock(%p) rc=%d %s\n", &d_env_lock, rc, strerror(rc));
fprintf(stderr, "d_env_rwlock_wrlock(%p) rc=%d %s\n", &d_env_lock, rc,
strerror(rc));
assert(rc == 0);
}

Expand All @@ -1006,7 +1008,8 @@ d_env_rwlock_unlock()

rc = pthread_rwlock_unlock(&d_env_lock);
if (rc != 0)
fprintf(stderr, "d_env_rwlock_unlock(%p) rc=%d %s\n", &d_env_lock, rc, strerror(rc));
fprintf(stderr, "d_env_rwlock_unlock(%p) rc=%d %s\n", &d_env_lock, rc,
strerror(rc));
assert(rc == 0);
}

Expand Down

0 comments on commit 534abe3

Please sign in to comment.