summaryrefslogtreecommitdiffstats
path: root/src/H5B2dbg.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:31:56 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:31:56 (GMT)
commit7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch)
tree44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /src/H5B2dbg.c
parent622fcbd13881fbc58bbeaed3062583b759f5e864 (diff)
downloadhdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.zip
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.gz
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.bz2
Rename HDassert() to assert() (#3191)
* Change HDassert to assert * Fix bin/make_err
Diffstat (limited to 'src/H5B2dbg.c')
-rw-r--r--src/H5B2dbg.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/H5B2dbg.c b/src/H5B2dbg.c
index 9effa74..a94bc76 100644
--- a/src/H5B2dbg.c
+++ b/src/H5B2dbg.c
@@ -89,13 +89,13 @@ H5B2__hdr_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth,
/*
* Check arguments.
*/
- HDassert(f);
- HDassert(H5_addr_defined(addr));
- HDassert(H5_addr_defined(obj_addr));
- HDassert(stream);
- HDassert(indent >= 0);
- HDassert(fwidth >= 0);
- HDassert(type);
+ assert(f);
+ assert(H5_addr_defined(addr));
+ assert(H5_addr_defined(obj_addr));
+ assert(stream);
+ assert(indent >= 0);
+ assert(fwidth >= 0);
+ assert(type);
/* Load the B-tree header */
if (NULL == (hdr = H5B2__hdr_protect(f, addr, f, H5AC__READ_ONLY_FLAG)))
@@ -170,15 +170,15 @@ H5B2__int_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth, co
/*
* Check arguments.
*/
- HDassert(f);
- HDassert(H5_addr_defined(addr));
- HDassert(stream);
- HDassert(indent >= 0);
- HDassert(fwidth >= 0);
- HDassert(type);
- HDassert(H5_addr_defined(hdr_addr));
- HDassert(H5_addr_defined(obj_addr));
- HDassert(nrec > 0);
+ assert(f);
+ assert(H5_addr_defined(addr));
+ assert(stream);
+ assert(indent >= 0);
+ assert(fwidth >= 0);
+ assert(type);
+ assert(H5_addr_defined(hdr_addr));
+ assert(H5_addr_defined(obj_addr));
+ assert(nrec > 0);
/* Load the B-tree header */
if (NULL == (hdr = H5B2__hdr_protect(f, hdr_addr, f, H5AC__READ_ONLY_FLAG)))
@@ -223,7 +223,7 @@ H5B2__int_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth, co
/* Print record */
HDsnprintf(temp_str, sizeof(temp_str), "Record #%u:", u);
HDfprintf(stream, "%*s%-*s\n", indent + 3, "", MAX(0, fwidth - 3), temp_str);
- HDassert(H5B2_INT_NREC(internal, hdr, u));
+ assert(H5B2_INT_NREC(internal, hdr, u));
(void)(type->debug)(stream, indent + 6, MAX(0, fwidth - 6), H5B2_INT_NREC(internal, hdr, u),
hdr->cb_ctx);
} /* end for */
@@ -271,15 +271,15 @@ H5B2__leaf_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth, c
/*
* Check arguments.
*/
- HDassert(f);
- HDassert(H5_addr_defined(addr));
- HDassert(stream);
- HDassert(indent >= 0);
- HDassert(fwidth >= 0);
- HDassert(type);
- HDassert(H5_addr_defined(hdr_addr));
- HDassert(H5_addr_defined(obj_addr));
- HDassert(nrec > 0);
+ assert(f);
+ assert(H5_addr_defined(addr));
+ assert(stream);
+ assert(indent >= 0);
+ assert(fwidth >= 0);
+ assert(type);
+ assert(H5_addr_defined(hdr_addr));
+ assert(H5_addr_defined(obj_addr));
+ assert(nrec > 0);
/* Load the B-tree header */
if (NULL == (hdr = H5B2__hdr_protect(f, hdr_addr, f, H5AC__READ_ONLY_FLAG)))
@@ -317,7 +317,7 @@ H5B2__leaf_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth, c
/* Print record */
HDsnprintf(temp_str, sizeof(temp_str), "Record #%u:", u);
HDfprintf(stream, "%*s%-*s\n", indent + 3, "", MAX(0, fwidth - 3), temp_str);
- HDassert(H5B2_LEAF_NREC(leaf, hdr, u));
+ assert(H5B2_LEAF_NREC(leaf, hdr, u));
(void)(type->debug)(stream, indent + 6, MAX(0, fwidth - 6), H5B2_LEAF_NREC(leaf, hdr, u),
hdr->cb_ctx);
} /* end for */