diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2022-01-11 18:16:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 18:16:10 (GMT) |
commit | a13bf24a397783272d05a405cb7dcb2b950e4a43 (patch) | |
tree | ed00c61b45079fa80bd250a03c810de96471095c /src/H5VLnative_token.c | |
parent | 80017cba4ff4c67aaea70b202745cb7b66100b16 (diff) | |
download | hdf5-a13bf24a397783272d05a405cb7dcb2b950e4a43.zip hdf5-a13bf24a397783272d05a405cb7dcb2b950e4a43.tar.gz hdf5-a13bf24a397783272d05a405cb7dcb2b950e4a43.tar.bz2 |
Use appropriate printf format specifiers for haddr_t and hsize_t types directly (#1340)
Diffstat (limited to 'src/H5VLnative_token.c')
-rw-r--r-- | src/H5VLnative_token.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5VLnative_token.c b/src/H5VLnative_token.c index bed0164..b5bd7b8 100644 --- a/src/H5VLnative_token.c +++ b/src/H5VLnative_token.c @@ -112,7 +112,7 @@ H5VL__native_token_to_str(void *obj, H5I_type_t obj_type, const H5O_token_t *tok if (NULL == (*token_str = H5MM_malloc(addr_ndigits + 1))) HGOTO_ERROR(H5E_RESOURCE, H5E_CANTALLOC, FAIL, "can't allocate buffer for token string") - HDsnprintf(*token_str, addr_ndigits + 1, H5_PRINTF_HADDR_FMT, addr); + HDsnprintf(*token_str, addr_ndigits + 1, "%" PRIuHADDR, addr); done: FUNC_LEAVE_NOAPI(ret_value) @@ -139,7 +139,7 @@ H5VL__native_str_to_token(void *obj, H5I_type_t obj_type, const char *token_str, /* Check parameters */ HDassert(token_str); - HDsscanf(token_str, H5_PRINTF_HADDR_FMT, &addr); + HDsscanf(token_str, "%" PRIuHADDR, &addr); if (H5VL_native_addr_to_token(obj, obj_type, addr, token) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTDECODE, FAIL, "can't convert address to object token") |