#ifndef USER_LOG_H_ #define USER_LOG_H_ #include #define DB_ERROR #define DB_WARN #define DB_INFO #define DB_DEBUG #define DB_MSG #ifdef DB_ERROR #define db_error(fmt, arg...) \ do { \ ALOGE(" " fmt, __LINE__, __FUNCTION__, ##arg); \ } while(0) #else #define db_error(fmt, arg...) #endif #ifdef DB_WARN #define db_warn(fmt, arg...) \ do { \ ALOGW(" " fmt, __LINE__, __FUNCTION__, ##arg); \ } while(0) #else #define db_warn(fmt, arg...) #endif #ifdef DB_INFO #define db_info(fmt, arg...) \ do { \ ALOGI(" " fmt, __LINE__, __FUNCTION__, ##arg); \ } while(0) #else #define db_info(fmt, arg...) #endif #ifdef DB_DEBUG #define db_debug(fmt, arg...) \ do { \ ALOGD(" " fmt, __LINE__, __FUNCTION__, ##arg); \ } while(0) #else #define db_debug(fmt, arg...) #endif #ifdef DB_MSG #define db_msg(fmt, arg...) \ do { \ ALOGV(" " fmt, __LINE__, __FUNCTION__, ##arg); \ } while(0) #else #define db_msg(fmt, arg...) #endif #endif