summaryrefslogtreecommitdiffstats
path: root/src/H5Ofill.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-05-08 17:21:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-05-08 17:21:43 (GMT)
commit646e232a54d4b0c74cac374f5de50d42cd46a643 (patch)
tree525a1048b8ee96740f03beb7b027ab909e96c1ba /src/H5Ofill.c
parent55dbd8d92a0d2d1dd9c56eef89d9e1981dddde22 (diff)
downloadhdf5-646e232a54d4b0c74cac374f5de50d42cd46a643.zip
hdf5-646e232a54d4b0c74cac374f5de50d42cd46a643.tar.gz
hdf5-646e232a54d4b0c74cac374f5de50d42cd46a643.tar.bz2
[svn-r6832] Purpose:
Code cleanup Description: Improve file format debugging output. Platforms tested: FreeBSD 4.8 (sleipnir) Triple check not needed
Diffstat (limited to 'src/H5Ofill.c')
-rw-r--r--src/H5Ofill.c57
1 files changed, 56 insertions, 1 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c
index 6f94d01..210b2de 100644
--- a/src/H5Ofill.c
+++ b/src/H5Ofill.c
@@ -693,8 +693,63 @@ H5O_fill_new_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_mesg, FIL
assert(indent>=0);
assert(fwidth>=0);
+ HDfprintf(stream, "%*s%-*s %u\n", indent, "", fwidth,
+ "Version:", (unsigned)H5O_FILL_VERSION);
+ fprintf(stream, "%*s%-*s ", indent, "", fwidth, "Space Allocation Time:");
+ switch(mesg->alloc_time) {
+ case H5D_ALLOC_TIME_EARLY:
+ fprintf(stream,"Early\n");
+ break;
+
+ case H5D_ALLOC_TIME_LATE:
+ fprintf(stream,"Late\n");
+ break;
+
+ case H5D_ALLOC_TIME_INCR:
+ fprintf(stream,"Incremental\n");
+ break;
+
+ default:
+ fprintf(stream,"Unknown!\n");
+ break;
+
+ } /* end switch */
+ fprintf(stream, "%*s%-*s ", indent, "", fwidth, "Fill Time:");
+ switch(mesg->fill_time) {
+ case H5D_FILL_TIME_ALLOC:
+ fprintf(stream,"On Allocation\n");
+ break;
+
+ case H5D_FILL_TIME_NEVER:
+ fprintf(stream,"Never\n");
+ break;
+
+ default:
+ fprintf(stream,"Unknown!\n");
+ break;
+
+ } /* end switch */
+ fprintf(stream, "%*s%-*s ", indent, "", fwidth, "Fill Value Defined:");
+ switch(mesg->fill_time) {
+ case H5D_FILL_VALUE_UNDEFINED:
+ fprintf(stream,"Undefined\n");
+ break;
+
+ case H5D_FILL_VALUE_DEFAULT:
+ fprintf(stream,"Default\n");
+ break;
+
+ case H5D_FILL_VALUE_USER_DEFINED:
+ fprintf(stream,"User Defined\n");
+ break;
+
+ default:
+ fprintf(stream,"Unknown!\n");
+ break;
+
+ } /* end switch */
HDfprintf(stream, "%*s%-*s %Zu\n", indent, "", fwidth,
- "Bytes:", mesg->size);
+ "Size:", mesg->size);
fprintf(stream, "%*s%-*s ", indent, "", fwidth, "Data type:");
if (mesg->type) {
H5T_debug(mesg->type, stream);