summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5dump/h5dump.h')
-rw-r--r--tools/h5dump/h5dump.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/h5dump/h5dump.h b/tools/h5dump/h5dump.h
index 77cd247..ba1eab2 100644
--- a/tools/h5dump/h5dump.h
+++ b/tools/h5dump/h5dump.h
@@ -25,6 +25,12 @@
printf("%s %s\n", (obj), (begin));
#define end_obj(obj,end) \
- printf("%s %s\n", (end), (obj));
+ if(HDstrlen(end)) \
+ printf("%s", end); \
+ if(HDstrlen(end) && HDstrlen(obj)) \
+ printf(" "); \
+ if(HDstrlen(obj)) \
+ printf("%s", obj); \
+ printf("\n");
#endif /* !H5DUMP_H__ */