summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r--tools/h5dump/h5dump.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index ec89210..0f863f8 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -36,14 +36,16 @@ const char *progname = "h5dump";
} while(0);
#define end_obj(obj,end) \
- if(HDstrlen(end)) { \
- printf("%s", end); \
+ do { \
+ if(HDstrlen(end)) { \
+ printf("%s", end); \
+ if(HDstrlen(obj)) \
+ printf(" "); \
+ } \
if(HDstrlen(obj)) \
- printf(" "); \
- } \
- if(HDstrlen(obj)) \
- printf("%s", obj); \
- printf("\n");
+ printf("%s", obj); \
+ printf("\n"); \
+ } while(0);
/* 3 private values: can't be set, but can be read.
Note: these are defined in H5Zprivate, they are