2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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.
17 #ifndef __ATTACH_PANEL_LOG_H__
18 #define __ATTACH_PANEL_LOG_H__
23 #define LOG_TAG "ATTACH_PANEL"
28 #define D_(str) dgettext(PACKAGE, str)
31 #define _D(fmt, arg...) LOGD(fmt"\n", ##arg)
35 #define _W(fmt, arg...) LOGW(fmt"\n", ##arg)
39 #define _E(fmt, arg...) LOGE(fmt"\n", ##arg)
43 #define _SD(fmt, arg...) SECURE_LOGD(fmt"\n", ##arg)
47 #define _SW(fmt, arg...) SECURE_LOGW(fmt"\n", ##arg)
51 #define _SE(fmt, arg...) SECURE_LOGE(fmt"\n", ##arg)
54 #define retv_if(expr, val) do { \
56 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
61 #define ret_if(expr) do { \
63 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
68 #define goto_if(expr, val) do { \
70 _E("(%s) -> goto", #expr); \
75 #define break_if(expr) { \
77 _E("(%s) -> break", #expr); \
82 #define continue_if(expr) { \
84 _E("(%s) -> continue", #expr); \
89 #endif /* __ATTACH_PANEL_LOG_H__ */