From d3abc98c0d17e6f3e165144e32a2c6a93664f4b2 Mon Sep 17 00:00:00 2001 From: "jiseob.jang" Date: Thu, 1 Feb 2018 14:39:40 +0900 Subject: [PATCH] remove dependencies related to logging. This dependencies are not completely removed. Ultimately it should be replaced by logging system in Tizen. Signed-off-by: jiseob.jang --- .../android_nn/nn/depend/android-base/logging.cpp | 1 + .../android_nn/nn/depend/liblog/include/log/log.h | 80 +++++++++++++++++++--- 2 files changed, 73 insertions(+), 8 deletions(-) diff --git a/experiments/android_nn/nn/depend/android-base/logging.cpp b/experiments/android_nn/nn/depend/android-base/logging.cpp index 6357b4b..def1fb5 100644 --- a/experiments/android_nn/nn/depend/android-base/logging.cpp +++ b/experiments/android_nn/nn/depend/android-base/logging.cpp @@ -66,6 +66,7 @@ #elif defined(__linux__) && !defined(__ANDROID__) #include #include +#include #elif defined(_WIN32) #include #endif diff --git a/experiments/android_nn/nn/depend/liblog/include/log/log.h b/experiments/android_nn/nn/depend/liblog/include/log/log.h index d01708d..7f9fa8a 100644 --- a/experiments/android_nn/nn/depend/liblog/include/log/log.h +++ b/experiments/android_nn/nn/depend/liblog/include/log/log.h @@ -28,14 +28,78 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include /* helper to define iovec for portability */ +//#include +//#include +//#include +//#include +//#include +//#include +//#include +//#include /* helper to define iovec for portability */ + +#ifndef LOG_PRI +#define LOG_PRI(priority, tag, ...) +#endif + +#ifndef IF_ALOG +#define IF_ALOG(priority, tag) if (false) +#endif + +#ifndef ALOG +#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__) +#endif + +#ifndef ALOGE +#define ALOGE(...) ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__) +#endif + +#ifndef ALOGW +#define ALOGW(...) ALOG(LOG_WARN, LOG_TAG, __VA_ARGS__) +#endif + +#ifndef ALOGW_IF +#define ALOGW_IF(...) IF_ALOG(LOG_WARN, LOG_TAG) +#endif + +#ifndef ALOGV +#define ALOGV(...) ALOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__) +#endif + +#ifndef IF_ALOGV +#define IF_ALOGV() IF_ALOG(LOG_VERBOSE, LOG_TAG) +#endif + +#ifndef ALOGI +#define ALOGI(...) ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__) +#endif + +#ifndef ALOGI_IF +#define ALOGI_IF(...) IF_ALOG(LOG_INFO, LOG_TAG) +#endif + +#ifndef ALOGD +#define ALOGD(...) ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__) +#endif + +#ifndef LOG_FATAL_IF +#define LOG_FATAL_IF(...) +#endif + +#ifndef LOG_ALWAYS_FATAL_IF +#define LOG_ALWAYS_FATAL_IF(...) +#endif + +#ifndef LOG_ALWAYS_FATAL +#define LOG_ALWAYS_FATAL(...) +#endif + +#ifndef ALOG_ASSERT +#define ALOG_ASSERT(...) +#endif + +#ifndef android_errorWriteLog +#define android_errorWriteLog(...) +#endif #ifdef __cplusplus extern "C" { -- 2.7.4