2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * 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 _D(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, "[%s][%s:%d] " fmt "\n", rindex(__FILE__, '/') + 1, __func__, __LINE__, ##arg)
33 #define _I(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, "[%s][%s:%d] " fmt "\n", rindex(__FILE__, '/') + 1, __func__, __LINE__, ##arg)
37 #define _W(fmt, arg...) dlog_print(DLOG_WARN, LOG_TAG, "[%s][%s:%d] " fmt "\n", rindex(__FILE__, '/') + 1, __func__, __LINE__, ##arg)
41 #define _E(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, "[%s][%s:%d] " fmt "\n", rindex(__FILE__, '/') + 1, __func__, __LINE__, ##arg)
44 #define retvm_if(expr, val, fmt, arg...) do { \
47 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
52 #define retv_if(expr, val) do { \
54 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
59 #define retm_if(expr, fmt, arg...) do { \
62 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
67 #define ret_if(expr) do { \
69 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
74 #define goto_if(expr, val) do { \
76 _E("(%s) -> goto", #expr); \
81 #define break_if(expr) { \
83 _E("(%s) -> break", #expr); \
88 #define continue_if(expr) { \
90 _E("(%s) -> continue", #expr); \