From 83053c865adc7551b53380090bcd037340ab0e7e Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 12 Nov 2013 10:22:41 +0100 Subject: [PATCH] DEBUG_ANDROID now a debug define using default macros. --- client/Android/FreeRDPCore/jni/android_debug.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/client/Android/FreeRDPCore/jni/android_debug.h b/client/Android/FreeRDPCore/jni/android_debug.h index 46892fb91..9c2f440c4 100644 --- a/client/Android/FreeRDPCore/jni/android_debug.h +++ b/client/Android/FreeRDPCore/jni/android_debug.h @@ -16,19 +16,15 @@ #include "config.h" #endif -#include - -#define TAG "LibFreeRDP" - -#define DEBUG_ANDROID_NULL(fmt, ...) do { } while (0) -#define DEBUG_ANDROID_PRINT(_dbg_str, fmt, ...) __android_log_print(ANDROID_LOG_INFO, TAG, _dbg_str fmt "\n" , __FUNCTION__, __LINE__, ## __VA_ARGS__) -#define DEBUG_ANDROID_CLASS(_dbg_class, fmt, ...) DEBUG_ANDROID_PRINT("DBG_" #_dbg_class " %s (%d): ", fmt, ## __VA_ARGS__) +#include #ifdef WITH_DEBUG_ANDROID_JNI -#define DEBUG_ANDROID(fmt, ...) DEBUG_ANDROID_PRINT("DBG %s (%d): ", fmt, ## __VA_ARGS__) +#define DEBUG_ANDROID(fmt, ...) DEBUG_CLASS(JNI, fmt, ## __VA_ARGS__) #else -#define DEBUG_ANDROID(fmt, ...) DEBUG_ANDROID_NULL(fmt, ## __VA_ARGS__) +#define DEBUG_ANDROID(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__) #endif + + #endif /* FREERDP_ANDROID_DEBUG_H */