summaryrefslogtreecommitdiffstats
path: root/src/H5dbg.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-10-14 22:26:14 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-10-15 13:09:50 (GMT)
commit7705120f1e627ce60274225720e06d18a7062e85 (patch)
treed922eb33eca374d610475fd684b78593bafb6449 /src/H5dbg.c
parent6f7605774874356b87b2d0fd9b15f1da7de8ef97 (diff)
downloadhdf5-7705120f1e627ce60274225720e06d18a7062e85.zip
hdf5-7705120f1e627ce60274225720e06d18a7062e85.tar.gz
hdf5-7705120f1e627ce60274225720e06d18a7062e85.tar.bz2
More merges from 1.10 comments and inits
Diffstat (limited to 'src/H5dbg.c')
-rw-r--r--src/H5dbg.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/H5dbg.c b/src/H5dbg.c
index e0b2b74..a78dbe8 100644
--- a/src/H5dbg.c
+++ b/src/H5dbg.c
@@ -13,11 +13,11 @@
/*-------------------------------------------------------------------------
*
- * Created: H5dbg.c
- * Mar 4 2006
- * Quincey Koziol <koziol@ncsa.uiuc.edu>
+ * Created: H5dbg.c
+ * Mar 4 2006
+ * Quincey Koziol
*
- * Purpose: Generic debugging routines
+ * Purpose: Generic debugging routines
*
*-------------------------------------------------------------------------
*/
@@ -29,7 +29,7 @@
/***********/
/* Headers */
/***********/
-#include "H5private.h" /* Generic Functions */
+#include "H5private.h" /* Generic Functions */
/****************/
/* Local Macros */
@@ -56,15 +56,14 @@
/*******************/
/*-------------------------------------------------------------------------
- * Function: H5_buffer_dump
+ * Function: H5_buffer_dump
*
- * Purpose: Dumps a buffer of memory in an octal dump form
+ * Purpose: Dumps a buffer of memory in an octal dump form
*
- * Return: Non-negative on success/Negative on failure
+ * Return: Non-negative on success/Negative on failure
*
- * Programmer: Quincey Koziol
- * koziol@ncsa.uiuc.edu
- * Mar 4 2006
+ * Programmer: Quincey Koziol
+ * Mar 4 2006
*
*-------------------------------------------------------------------------
*/
@@ -106,6 +105,7 @@ H5_buffer_dump(FILE *stream, int indent, const uint8_t *buf, const uint8_t *mark
} /* end if */
else
HDfprintf(stream, " ");
+
if (7 == v)
HDfputc(' ', stream);
} /* end for */
@@ -118,12 +118,14 @@ H5_buffer_dump(FILE *stream, int indent, const uint8_t *buf, const uint8_t *mark
HDfputc(' ', stream);
else {
c = buf[buf_offset + u + v];
+
if (HDisprint(c))
HDfputc(c, stream);
else
HDfputc('.', stream);
} /* end else */
} /* end if */
+
if (7 == v)
HDfputc(' ', stream);
} /* end for */