Skip to content

Commit e7b9b1b

Browse files
fixed documentation of cache int functions
1 parent 05c67d9 commit e7b9b1b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

libhdf5/hdf5var.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,7 @@ NC4_HDF5_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems,
22742274
*
22752275
* @param ncid File ID.
22762276
* @param varid Variable ID.
2277-
* @param size Size in bytes to set cache.
2277+
* @param size Size in MB to set cache.
22782278
* @param nelems Number of elements in cache.
22792279
* @param preemption Controls cache swapping.
22802280
*
@@ -2289,6 +2289,9 @@ nc_set_var_chunk_cache_ints(int ncid, int varid, int size, int nelems,
22892289
size_t real_nelems = H5D_CHUNK_CACHE_NSLOTS_DEFAULT;
22902290
float real_preemption = CHUNK_CACHE_PREEMPTION;
22912291

2292+
LOG((1, "%s: ncid 0x%x varid %d size %d nelems %d preemption %d",
2293+
__func__, ncid, varid, size, nelems, preemptions));
2294+
22922295
if (size >= 0)
22932296
real_size = ((size_t) size) * MEGABYTE;
22942297

libsrc4/nc4var.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ NC4_get_var_chunk_cache(int ncid, int varid, size_t *sizep,
7272
*
7373
* @param ncid File ID.
7474
* @param varid Variable ID.
75-
* @param sizep Gets size in bytes of cache.
75+
* @param sizep Gets size in MB of cache.
7676
* @param nelemsp Gets number of element slots in cache.
7777
* @param preemptionp Gets cache swapping setting.
7878
*

0 commit comments

Comments
 (0)