diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2014-12-10 20:29:47 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2014-12-10 20:29:47 (GMT) |
commit | 8368e9b6844a7554ea91067ac5eb4b91734e8639 (patch) | |
tree | 154dac6080e48b200b4325f1df75ad8cd660606d /src/H5Fsuper_cache.c | |
parent | bb9460b27dec2d251bc71a5d681cbe33100801e1 (diff) | |
download | hdf5-8368e9b6844a7554ea91067ac5eb4b91734e8639.zip hdf5-8368e9b6844a7554ea91067ac5eb4b91734e8639.tar.gz hdf5-8368e9b6844a7554ea91067ac5eb4b91734e8639.tar.bz2 |
[svn-r25881] Description:
Minor code/comment cleanups, found while reviewing 'avoid truncate' code.
Tested on:
MacOSX/64 10.10.1 (amazon) w/serial & parallel
(Too minor to require h5committest)
Diffstat (limited to 'src/H5Fsuper_cache.c')
-rw-r--r-- | src/H5Fsuper_cache.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/H5Fsuper_cache.c b/src/H5Fsuper_cache.c index 45fad37..fac3bed 100644 --- a/src/H5Fsuper_cache.c +++ b/src/H5Fsuper_cache.c @@ -121,7 +121,7 @@ H5F_sblock_load(H5F_t *f, hid_t dxpl_id, haddr_t UNUSED addr, void *_udata) H5F_file_t *shared; /* shared part of `file' */ H5FD_t *lf; /* file driver part of `shared' */ haddr_t stored_eoa; /*relative end-of-addr in file */ - haddr_t eof; /*end of file address */ + haddr_t eof; /* end of file address */ uint8_t sizeof_addr; /* Size of offsets in the file (in bytes) */ uint8_t sizeof_size; /* Size of lengths in the file (in bytes) */ const size_t fixed_size = H5F_SUPERBLOCK_FIXED_SIZE; /*fixed sizeof superblock */ @@ -476,11 +476,13 @@ H5F_sblock_load(H5F_t *f, hid_t dxpl_id, haddr_t UNUSED addr, void *_udata) * individually. */ if(HADDR_UNDEF == (eof = H5FD_get_eof(lf))) - HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, NULL, "unable to determine file size") + HGOTO_ERROR(H5E_FILE, H5E_CANTGET, NULL, "unable to determine file size") /* (Account for the stored EOA being absolute offset -QAK) */ if((eof + sblock->base_addr) < stored_eoa) - HGOTO_ERROR(H5E_FILE, H5E_TRUNCATED, NULL, "truncated file: eof = %llu, sblock->base_addr = %llu, stored_eoa = %llu", (unsigned long long)eof, (unsigned long long)sblock->base_addr, (unsigned long long)stored_eoa) + HGOTO_ERROR(H5E_FILE, H5E_TRUNCATED, NULL, + "truncated file: eof = %llu, sblock->base_addr = %llu, stored_eoa = %llu", + (unsigned long long)eof, (unsigned long long)sblock->base_addr, (unsigned long long)stored_eoa) /* * Tell the file driver how much address space has already been |