summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-08-01 20:52:20 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-08-01 20:52:20 (GMT)
commit332b6fd6765b28bfd1083af6e366ccc621feea1e (patch)
tree4f686a4261a33c6ef999118eb255af42c46073c6 /src/H5F.c
parent412e5606a83551629d2a6b15bc89b55d2de6081f (diff)
downloadhdf5-332b6fd6765b28bfd1083af6e366ccc621feea1e.zip
hdf5-332b6fd6765b28bfd1083af6e366ccc621feea1e.tar.gz
hdf5-332b6fd6765b28bfd1083af6e366ccc621feea1e.tar.bz2
[svn-r7] Changed some text for the file errors to make them more generic. Also, updated
the HRETURN_ERROR macro to take Pablo tracing parameters and call the Pablo tracing function before calling 'return()'.
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 8de7264..e924630 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -807,9 +807,9 @@ H5F_block_read (hdf5_file_t *f, haddr_t addr, size_t size, void *buf)
addr += f->file_create_parms.userblock_size;
if (H5F_SEEK (f->file_handle, addr)<0)
- HRETURN_ERROR(H5E_IO, H5E_SEEKERROR, FAIL);
+ HRETURN_ERROR(H5F_mask, ID_H5F_block_read, H5E_IO, H5E_SEEKERROR, FAIL);
if (H5F_READ (f->file_handle, buf, size)<0)
- HRETURN_ERROR(H5E_IO, H5E_READERROR, FAIL);
+ HRETURN_ERROR(H5F_mask, ID_H5F_block_read, H5E_IO, H5E_READERROR, FAIL);
PABLO_TRACE_OFF(H5F_mask, ID_H5F_block_read);
return SUCCEED;
}
@@ -844,9 +844,9 @@ H5F_block_write (hdf5_file_t *f, haddr_t addr, size_t size, void *buf)
addr += f->file_create_parms.userblock_size;
if (H5F_SEEK (f->file_handle, addr)<0)
- HRETURN_ERROR(H5E_IO, H5E_SEEKERROR, FAIL);
+ HRETURN_ERROR(H5F_mask, ID_H5F_block_write, H5E_IO, H5E_SEEKERROR, FAIL);
if (H5F_WRITE (f->file_handle, buf, size)<0)
- HRETURN_ERROR(H5E_IO, H5E_WRITEERROR, FAIL);
+ HRETURN_ERROR(H5F_mask, ID_H5F_block_write, H5E_IO, H5E_WRITEERROR, FAIL);
PABLO_TRACE_OFF(H5F_mask, ID_H5F_block_write);
return SUCCEED;
}