2 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing,
11 * software distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
29 #define LOG_TAG "UG_SETTING_BLUETOOTH"
31 #define BT_INFO(fmt, arg...) SLOGI(fmt, ##arg)
33 #define BT_ERR(fmt, arg...) SLOGE(fmt, ##arg)
35 #define BT_DBG(fmt, arg...) SLOGD(fmt, ##arg)
37 #define FUNCTION_TRACE
40 #define FN_START BT_DBG("[ENTER FUNC]");
41 #define FN_END BT_DBG("[EXIT FUNC]");
47 #define warn_if(expr, fmt, arg...) \
50 BT_ERR("(%s) -> "fmt, #expr, ##arg); \
54 #define ret_if(expr) \
57 BT_ERR("(%s) return", #expr); \
62 #define retv_if(expr, val) \
65 BT_ERR("(%s) return", #expr); \
70 #define retm_if(expr, fmt, arg...) \
74 BT_ERR("(%s) return", #expr); \
79 #define retvm_if(expr, val, fmt, arg...) \
83 BT_ERR("(%s) return", #expr); \
91 #endif /* __BT_DEBUG_H */