4 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
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.
20 #ifndef __TASK_MGR_LOG_H__
21 #define __TASK_MGR_LOG_H__
27 #define LOG_TAG "TASK_MGR"
30 #define _D(fmt, arg...) LOGD(fmt"\n", ##arg)
34 #define _W(fmt, arg...) LOGW(fmt"\n", ##arg)
38 #define _E(fmt, arg...) LOGE(fmt"\n", ##arg)
42 #define _SD(fmt, arg...) SECURE_LOGD(fmt"\n", ##arg)
46 #define _SW(fmt, arg...) SECURE_LOGW(fmt"\n", ##arg)
50 #define _SE(fmt, arg...) SECURE_LOGE(fmt"\n", ##arg)
53 #define retvm_if_timer(timer, expr, val, fmt, arg...) do { \
56 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
62 #define retvm_if(expr, val, fmt, arg...) do { \
65 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
70 #define retv_if(expr, val) do { \
72 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
77 #define retm_if(expr, fmt, arg...) do { \
80 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
85 #define ret_if(expr) do { \
87 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
92 #define goto_if(expr, val) do { \
94 _E("(%s) -> goto", #expr); \
99 #define break_if(expr) { \
101 _E("(%s) -> break", #expr); \
106 #define continue_if(expr) { \
108 _E("(%s) -> continue", #expr); \
115 #endif //__TASK_MGR_LOG_H__