#endif
#undef LOG_TAG
-#define LOG_TAG "BLUETOOTH_TDSP"
+#define LOG_TAG "TDS_PROVIDER"
#ifdef FUNCTION_TRACE
-#define FN_START BT_DBG("[ENTER FUNC]")
-#define FN_END BT_DBG("[EXIT FUNC]")
+#define FN_START TDS_DBG("[ENTER FUNC]")
+#define FN_END TDS_DBG("[EXIT FUNC]")
#else
#define FN_START
#define FN_END
#define LOG_COLOR_BLUE "\033[36m"
#define LOG_COLOR_PURPLE "\033[35m"
-#define BT_PERMANENT_LOG(fmt, args...) _bt_permanent_log(fmt, ##args)
+#define TDS_PERMANENT_LOG(fmt, args...) _tds_permanent_log(fmt, ##args)
-#define BT_DBG(fmt, args...) \
+#define TDS_DBG(fmt, args...) \
SLOGD(fmt, ##args)
-#define BT_INFO(fmt, args...) \
+#define TDS_INFO(fmt, args...) \
SLOGI(fmt, ##args)
-#define BT_ERR(fmt, args...) \
+#define TDS_ERR(fmt, args...) \
SLOGE(fmt, ##args)
-#define BT_INFO_C(fmt, arg...) \
+#define TDS_INFO_C(fmt, arg...) \
SLOGI_IF(TRUE, LOG_COLOR_GREEN" "fmt" "LOG_COLOR_RESET, ##arg)
-#define BT_ERR_C(fmt, arg...) \
+#define TDS_ERR_C(fmt, arg...) \
SLOGI_IF(TRUE, LOG_COLOR_RED" "fmt" "LOG_COLOR_RESET, ##arg)
#define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
-#ifdef TIZEN_FEATURE_BT_OBEX
-#define INFO_SECURE(fmt, args...) SECURE_SLOGI(fmt, ##args)
-#endif
#define ERR_SECURE(fmt, args...) SECURE_SLOGE(fmt, ##args)
#define ret_if(expr) \
do { \
if (expr) { \
- BT_ERR("(%s) return", #expr); \
+ TDS_ERR("(%s) return", #expr); \
return; \
} \
} while (0)
#define retv_if(expr, val) \
do { \
if (expr) { \
- BT_ERR("(%s) return", #expr); \
+ TDS_ERR("(%s) return", #expr); \
return (val); \
} \
} while (0)
-#define BT_CHECK_PARAMETER(arg, func) \
+#define TDS_CHECK_PARAMETER(arg, func) \
do { \
if (arg == NULL) { \
- BT_ERR("%s is NULL", #arg); \
+ TDS_ERR("%s is NULL", #arg); \
func BLUETOOTH_ERROR_INVALID_PARAM; \
} \
} while (0)