summaryrefslogtreecommitdiffstats
path: root/collection
diff options
context:
space:
mode:
Diffstat (limited to 'collection')
-rw-r--r--collection/collection_tools.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/collection/collection_tools.c b/collection/collection_tools.c
index 7352b3a..b7f30d2 100644
--- a/collection/collection_tools.c
+++ b/collection/collection_tools.c
@@ -129,8 +129,11 @@ int col_debug_handle(const char *property,
((struct collection_header *)(data))->count,
((struct collection_header *)(data))->reference_count,
((struct collection_header *)(data))->cclass);
+/* Due to padding issues this is unsafe so ifdefed for now */
+#ifdef COL_PRINT_BINARY_HEADER
for (i = 0; i < length; i++)
printf("%02X", ((unsigned char *)(data))[i]);
+#endif
printf(" (%d)\n", nest_level);
break;
case COL_TYPE_COLLECTIONREF: