diff --git a/libhdf5/hdf5var.c b/libhdf5/hdf5var.c index 05fa2a060..d0404caeb 100644 --- a/libhdf5/hdf5var.c +++ b/libhdf5/hdf5var.c @@ -2274,7 +2274,7 @@ NC4_HDF5_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems, * * @param ncid File ID. * @param varid Variable ID. - * @param size Size in bytes to set cache. + * @param size Size in MB to set cache. * @param nelems Number of elements in cache. * @param preemption Controls cache swapping. * @@ -2289,6 +2289,9 @@ nc_set_var_chunk_cache_ints(int ncid, int varid, int size, int nelems, size_t real_nelems = H5D_CHUNK_CACHE_NSLOTS_DEFAULT; float real_preemption = CHUNK_CACHE_PREEMPTION; + LOG((1, "%s: ncid 0x%x varid %d size %d nelems %d preemption %d", + __func__, ncid, varid, size, nelems, preemptions)); + if (size >= 0) real_size = ((size_t) size) * MEGABYTE; diff --git a/libsrc4/nc4var.c b/libsrc4/nc4var.c index d6843134c..b5192f71f 100644 --- a/libsrc4/nc4var.c +++ b/libsrc4/nc4var.c @@ -72,7 +72,7 @@ NC4_get_var_chunk_cache(int ncid, int varid, size_t *sizep, * * @param ncid File ID. * @param varid Variable ID. - * @param sizep Gets size in bytes of cache. + * @param sizep Gets size in MB of cache. * @param nelemsp Gets number of element slots in cache. * @param preemptionp Gets cache swapping setting. *