[LICENSE] change to Flora-1.1 license
[profile/tv/apps/native/screen-reader.git] / include / dbg.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * This file is a modified version of BSD licensed file and
5  * licensed under the Flora License, Version 1.1 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://floralicense.org/license/
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * Please, see the LICENSE file for the original copyright owner and
18  * license.
19  */
20
21 #ifndef __DBG_H__
22
23 #include <dlog.h>
24
25 #ifdef  LOG_TAG
26 #undef  LOG_TAG
27 #endif
28 #define LOG_TAG "org.tizen.clientDBusWrapper"
29
30 #ifndef _ERR
31 #define _ERR(fmt, args...) LOGE("[%s:%d] "fmt"\n", __func__, __LINE__, ##args)
32 #endif
33
34 #ifndef _DBG
35 #define _DBG(fmt, args...) LOGD("[%s:%d] "fmt"\n", __func__, __LINE__, ##args)
36 #endif
37
38 #ifndef _INFO
39 #define _INFO(fmt, args...) LOGI("[%s:%d] "fmt"\n", __func__, __LINE__, ##args)
40 #endif
41
42
43 #endif /* __DBG_H__ */