4 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
28 * SYSLOG_INFO(), SYSLOG_ERR(), SYSLOG_DBG() are syslog() wrappers.
29 * PRT_INFO(), PRT_ERR(), PRT_DBG() are fprintf() wrappers.
31 * If SLP_DEBUG is not defined, SYSLOG_DBG() and PRT_DBG() is ignored.
33 * IF SLP_SYSLOG_OUT or SLP_DAEMON is defined,
34 * INFO(), ERR(), DBG() are SYSLOG_XXX()
39 * warn_if(exrp, fmt, ...)
40 * If expr is true, The fmt string is printed using ERR().
42 * ret_if(), retv_if(), retm_if(), retvm_if()
43 * If expr is true, current function return.
44 * Postfix 'v' means that it has a return value and
45 * 'm' means that it has output message.
53 #define LOG_TAG "BLUETOOTH_SHARE"
55 #define INFO(fmt, arg...) \
58 #define ERR(fmt, arg...) \
61 #define DBG(fmt, arg...) \
64 #define FN_START DBG("[ENTER FUNC]");
65 #define FN_END DBG("[EXIT FUNC]");
67 #define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
68 #define ERR_SECURE(fmt, args...) SECURE_SLOGE(fmt, ##args)
69 #define INFO_SECURE(fmt, args...) SECURE_SLOGI(fmt, ##args)
71 #define warn_if(expr, fmt, arg...) do { \
77 #define ret_if(expr) do { \
83 #define retv_if(expr, val) do { \
89 #define retm_if(expr, fmt, arg...) do { \
96 #define retvm_if(expr, val, fmt, arg...) do { \
106 #endif /* __APPLOG_H__ */