X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..420ff9d9379a8d93f2c90f026a797bdea1eb4517:/libsecurity_utilities/lib/debugging.h diff --git a/libsecurity_utilities/lib/debugging.h b/libsecurity_utilities/lib/debugging.h index 39e5aa1c..b9f49c12 100644 --- a/libsecurity_utilities/lib/debugging.h +++ b/libsecurity_utilities/lib/debugging.h @@ -29,13 +29,7 @@ #define _H_DEBUGGING -// -// Include DTrace static probe definitions -// -typedef const void *DTException; - -#include - +#include #ifdef __cplusplus @@ -43,7 +37,6 @@ typedef const void *DTException; #include #include - namespace Security { namespace Debug { @@ -124,31 +117,13 @@ inline void vdebug(const char *scope, const char *format, va_list args) { } // leak debug() into the global namespace because URLAccess et al rely on that using Security::Debug::debug; - #else //__cplusplus #include #endif //__cplusplus - -// -// The debug-log macro is now unconditionally emitted as a DTrace static probe point. -// -#define secdebug(scope, format...) \ - if (__builtin_expect(SECURITY_DEBUG_LOG_ENABLED(), 0)) { \ - char __msg[500]; snprintf(__msg, sizeof(__msg), ## format); \ - volatile char c __attribute__((unused)) = scope[0]; \ - SECURITY_DEBUG_LOG((char *)(scope), (__msg)); \ - } else /* nothing */ -#define secdebugf(scope, __msg) SECURITY_DEBUG_LOG((char *)(scope), (__msg)) - - -// -// The old secdelay() macro is also emitted as a DTrace probe (use destructive actions to handle this). -// Secdelay() should be considered a legacy feature; just put a secdebug at the intended delay point. -// -#define secdelay(file) SECURITY_DEBUG_DELAY((char *)(file)) +#include #endif //_H_DEBUGGING