summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2018-07-16 19:48:11 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2018-07-16 19:48:11 (GMT)
commit83ca39ba9a2d6852dd7754b533f7839e9d2a0107 (patch)
treeb2253864b27e23259a65ac09a154a58cc7225ee9 /src
parentfa5d96dc5efc463015b4455e6ed2b96346b3b12f (diff)
downloadhdf5-83ca39ba9a2d6852dd7754b533f7839e9d2a0107.zip
hdf5-83ca39ba9a2d6852dd7754b533f7839e9d2a0107.tar.gz
hdf5-83ca39ba9a2d6852dd7754b533f7839e9d2a0107.tar.bz2
Combined macro lines as Dana commented
Platforms tested: Linux/64 (jelly) (very minor)
Diffstat (limited to 'src')
-rw-r--r--src/H5Dbtree.c3
-rw-r--r--src/H5Dchunk.c3
-rw-r--r--src/H5Dint.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/H5Dbtree.c b/src/H5Dbtree.c
index 04f5419..8abfe27 100644
--- a/src/H5Dbtree.c
+++ b/src/H5Dbtree.c
@@ -688,8 +688,7 @@ H5D__btree_decode_key(const H5B_shared_t *shared, const uint8_t *raw, void *_key
for(u = 0; u < layout->ndims; u++)
{
if (layout->dim[u] == 0)
- HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, FAIL,
- "chunk size must be > 0, dim = %u ", u)
+ HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, FAIL, "chunk size must be > 0, dim = %u ", u)
/* Retrieve coordinate offset */
UINT64DECODE(raw, tmp_offset);
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c
index 7b8377d..f03ee8b 100644
--- a/src/H5Dchunk.c
+++ b/src/H5Dchunk.c
@@ -948,8 +948,7 @@ H5D__chunk_init(H5F_t *f, const H5D_t *dset, hid_t dapl_id)
/* Initial scaled dimension sizes */
if(dset->shared->layout.u.chunk.dim[u] == 0)
- HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, FAIL,
- "chunk size must be > 0, dim = %u ", u)
+ HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, FAIL, "chunk size must be > 0, dim = %u ", u)
rdcc->scaled_dims[u] = dset->shared->curr_dims[u] / dset->shared->layout.u.chunk.dim[u];
if( !(scaled_power2up = H5VM_power2up(rdcc->scaled_dims[u])) )
diff --git a/src/H5Dint.c b/src/H5Dint.c
index 0c7fee0..e8874a2 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -2634,8 +2634,7 @@ H5D__set_extent(H5D_t *dset, const hsize_t *size)
/* Compute the scaled dimension size value */
if(dset->shared->layout.u.chunk.dim[dim_idx] == 0)
- HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, FAIL,
- "chunk size must be > 0, dim = %u ", dim_idx)
+ HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, FAIL, "chunk size must be > 0, dim = %u ", dim_idx)
scaled = size[dim_idx] / dset->shared->layout.u.chunk.dim[dim_idx];