20 HAL_ERROR_NOT_IMPLEMENTED,
21 HAL_ERROR_NOT_INITIALIZED,
22 HAL_ERROR_INVALID_PARAMS,
35 #define FALSE (HAL_FALSE) 39 #define TRUE (HAL_TRUE) 45 #include <android/log.h> 53 #define L_TRACE(...) \ 54 FunctionLogger __flogger(__FILE__,__FUNCTION__,__LINE__);\ 55 __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__) 57 #define L_DEBUG(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) 58 #define L_WARN(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__) 59 #define L_ERROR(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) 63 #define L_TRACE(args...) do { printf("[TRACE] %s:%d: ",__FILE__, __LINE__); printf(args); printf("\n"); } while(0) 64 #define L_DEBUG(args...) do { printf("[DEBUG] %s:%d: ",__FILE__, __LINE__); printf(args); printf("\n"); } while(0) 65 #define L_WARN(args...) do { printf("[WARN ] %s:%d: ",__FILE__, __LINE__); printf(args); printf("\n"); } while(0) 66 #define L_ERROR(args...) do { printf("[ERROR] %s:%d: ",__FILE__, __LINE__); printf(args); printf("\n"); } while(0) 72 #define L_TRACE(...) do { } while(0) 73 #define L_DEBUG(...) do { } while(0) 74 #define L_WARN(...) do { } while(0) 80 #define L_ERROR(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) 82 #define L_ERROR(...) __android_log_print(ANDROID_LOG_ERROR, __FILE__, __VA_ARGS__) 85 #define L_ERROR(args...) do { printf("[ERROR] %s:%d: ",__FILE__, __LINE__); printf(args); printf("\n"); } while(0) 93 FunctionLogger(
const char * file,
const char * func,
const int line)
98 L_DEBUG(
"%s:%d:%s() >> begin", m_file, m_line, m_func);
103 L_DEBUG(
"%s:%d:%s() << end", m_file, m_line, m_func);
114 #endif // HALERROR_H_ Definition: HAL_error.h:90