4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: junsuk. oh <junsuk77.oh@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef __PKGMGR_PARSER_DEBUG_H__
23 #define __PKGMGR_PARSER_DEBUG_H__
27 #define _LOGE(fmt, arg...) LOGE(fmt, ##arg)
28 #define _LOGI(fmt, arg...) LOGI(fmt, ##arg)
29 #define _LOGD(fmt, arg...) LOGD(fmt, ##arg)
34 #define LOG_TAG "PKGMGR_PARSER"
36 #define ret_if(expr) do { \
38 _LOGE("(%s) ", #expr); \
43 #define retm_if(expr, fmt, arg...) do { \
45 _LOGE("(%s) "fmt, #expr, ##arg); \
50 #define retv_if(expr, val) do { \
52 _LOGE("(%s) ", #expr); \
57 #define retvm_if(expr, val, fmt, arg...) do { \
59 _LOGE("(%s) "fmt, #expr, ##arg); \
64 #define trym_if(expr, fmt, arg...) do { \
66 _LOGE("(%s) "fmt, #expr, ##arg); \
71 #define tryvm_if(expr, val, fmt, arg...) do { \
73 _LOGE("(%s) "fmt, #expr, ##arg); \
79 #endif /* __PKGMGR_PARSER_DEBUG_H__ */