2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Contact: Jin Yoon <jinny.yoon@samsung.com>
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.
32 #define LOG_TAG "STAPP"
34 #define _E(fmt, args...) dlog_print(DLOG_ERROR, LOG_TAG, "%s : %s(%d) > "fmt"\n", rindex(__FILE__, '/') + 1, __func__, __LINE__, ##args)
35 #define _W(fmt, args...) dlog_print(DLOG_WARN, LOG_TAG, "%s : %s(%d) > "fmt"\n", rindex(__FILE__, '/') + 1, __func__, __LINE__, ##args)
36 #define _I(fmt, args...) dlog_print(DLOG_INFO, LOG_TAG, "%s : %s(%d) > "fmt"\n", rindex(__FILE__, '/') + 1, __func__, __LINE__, ##args)
37 #define _D(fmt, args...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s : %s(%d) > "fmt"\n", rindex(__FILE__, '/') + 1, __func__, __LINE__, ##args)
39 #define START dlog_print(DLOG_DEBUG, LOG_TAG, "%s : %s(%d) >>>>>>>> called", rindex(__FILE__, '/') + 1, __func__, __LINE__)
40 #define END dlog_print(DLOG_DEBUG, LOG_TAG, "%s : %s(%d) <<<<<<<< ended", rindex(__FILE__, '/') + 1, __func__, __LINE__)
42 #define retvm_if(expr, val, fmt, arg...) do { \
45 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
50 #define retv_if(expr, val) do { \
52 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
57 #define retm_if(expr, fmt, arg...) do { \
60 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
65 #define ret_if(expr) do { \
67 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
72 #define goto_if(expr, val) do { \
74 _E("(%s) -> goto", #expr); \
79 #define break_if(expr) { \
81 _E("(%s) -> break", #expr); \
86 #define continue_if(expr) { \
88 _E("(%s) -> continue", #expr); \
98 #endif /* __LOG_H__ */