summaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c
index cf93e01..8912b3a 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -134,3 +134,16 @@ inline void debug_buffer_to_file(const char *file, const char *data, const int l
}
#endif
}
+
+inline void debug_plist(plist_t plist)
+{
+ if (!plist)
+ return;
+
+ char *buffer = NULL;
+ uint32_t length = 0;
+ plist_to_xml(plist, &buffer, &length);
+ debug_info("plist size: %i\nbuffer :\n%s", length, buffer);
+ free(buffer);
+}
+