diff options
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 13 |
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 | |||
| 134 | } | 134 | } |
| 135 | #endif | 135 | #endif |
| 136 | } | 136 | } |
| 137 | |||
| 138 | inline void debug_plist(plist_t plist) | ||
| 139 | { | ||
| 140 | if (!plist) | ||
| 141 | return; | ||
| 142 | |||
| 143 | char *buffer = NULL; | ||
| 144 | uint32_t length = 0; | ||
| 145 | plist_to_xml(plist, &buffer, &length); | ||
| 146 | debug_info("plist size: %i\nbuffer :\n%s", length, buffer); | ||
| 147 | free(buffer); | ||
| 148 | } | ||
| 149 | |||
