diff options
author | Martin Szulecki | 2010-01-12 17:53:55 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-12 17:53:55 +0100 |
commit | bf3dc421b2b5ccfe2fcd3cd4ec1ef90f39599600 (patch) | |
tree | 9108ac43b6fbbc45eb9ea4aed3a2234590aaf501 /src/debug.c | |
parent | 3b57fa5d0ed2d8060233fa9604bd7f98a7d6cdab (diff) | |
download | libimobiledevice-bf3dc421b2b5ccfe2fcd3cd4ec1ef90f39599600.tar.gz libimobiledevice-bf3dc421b2b5ccfe2fcd3cd4ec1ef90f39599600.tar.bz2 |
Remove support for debug masks due to inconsistent use
Diffstat (limited to 'src/debug.c')
-rw-r--r-- | src/debug.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/debug.c b/src/debug.c index b5f74ad..78f3a17 100644 --- a/src/debug.c +++ b/src/debug.c @@ -26,7 +26,6 @@ #include "libiphone/libiphone.h" int toto_debug = 0; -uint16_t dbg_mask = 0; /** * Sets the level of debugging. Currently the only acceptable values are 0 and @@ -39,17 +38,6 @@ void iphone_set_debug_level(int level) toto_debug = level; } - -/** - * Set debug ids to display. Values can be OR-ed - * - * @param level Set to 0 for no debugging or 1 for debugging. - */ -void iphone_set_debug_mask(uint16_t mask) -{ - dbg_mask = mask; -} - void log_debug_msg(const char *format, ...) { #ifndef STRIP_DEBUG_CODE @@ -66,21 +54,6 @@ void log_debug_msg(const char *format, ...) #endif } -void log_dbg_msg(uint16_t id, const char *format, ...) -{ -#ifndef STRIP_DEBUG_CODE - if (id & dbg_mask) { - va_list args; - /* run the real fprintf */ - va_start(args, format); - - vfprintf(stderr, format, args); - - va_end(args); - } -#endif -} - inline void log_debug_buffer(const char *data, const int length) { #ifndef STRIP_DEBUG_CODE |