From 95d54196dbe8a3562feef3cd251e03a7878fec93 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 28 Aug 2012 13:30:11 +0400 Subject: [PATCH] Android camera: fix logging macro --- modules/androidcamera/src/camera_activity.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/androidcamera/src/camera_activity.cpp b/modules/androidcamera/src/camera_activity.cpp index 23b39a1af0..6954e49a53 100644 --- a/modules/androidcamera/src/camera_activity.cpp +++ b/modules/androidcamera/src/camera_activity.cpp @@ -6,10 +6,15 @@ #include "camera_activity.hpp" #include "camera_wrapper.h" -#define LOG_TAG "CAMERA_ACTIVITY" +#undef LOG_TAG +#undef LOGE +#undef LOGD +#undef LOGI + +#define LOG_TAG "OpenCV::camera" +#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)) #define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)) #define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)) -#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)) /////// // Debug