diff options
| author | 2017-02-05 06:01:11 +0100 | |
|---|---|---|
| committer | 2017-02-05 06:01:11 +0100 | |
| commit | 31d7cc5370f37cc6b9ecc4e26256e74634554343 (patch) | |
| tree | 85d35012ca641e012c1d9c8acd2fd76c5dfb81a8 /src/plist.c | |
| parent | 67eb54ab73f07560ae72058ed6ab6b47936be695 (diff) | |
| download | libplist-31d7cc5370f37cc6b9ecc4e26256e74634554343.tar.gz libplist-31d7cc5370f37cc6b9ecc4e26256e74634554343.tar.bz2 | |
bplist: Add error/debug logging (only if configured with --enable-debug)
This commit adds proper debug/error messages being printed if the binary
plist parser encounters anything abnormal. To enable debug logging,
libplist must be configured with --enable-debug, and the environment
variable PLIST_BIN_DEBUG must be set to "1".
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c index 8c2866d..3314378 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -41,14 +41,18 @@ | |||
| 41 | 41 | ||
| 42 | extern void plist_xml_init(void); | 42 | extern void plist_xml_init(void); |
| 43 | extern void plist_xml_deinit(void); | 43 | extern void plist_xml_deinit(void); |
| 44 | extern void plist_bin_init(void); | ||
| 45 | extern void plist_bin_deinit(void); | ||
| 44 | 46 | ||
| 45 | static void internal_plist_init(void) | 47 | static void internal_plist_init(void) |
| 46 | { | 48 | { |
| 49 | plist_bin_init(); | ||
| 47 | plist_xml_init(); | 50 | plist_xml_init(); |
| 48 | } | 51 | } |
| 49 | 52 | ||
| 50 | static void internal_plist_deinit(void) | 53 | static void internal_plist_deinit(void) |
| 51 | { | 54 | { |
| 55 | plist_bin_deinit(); | ||
| 52 | plist_xml_deinit(); | 56 | plist_xml_deinit(); |
| 53 | } | 57 | } |
| 54 | 58 | ||
