2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 _MINICTRL_LOG_H_
18 #define _MINICTRL_LOG_H_
23 #ifdef MINICTRL_USE_DLOG
30 #define LOG_TAG "libminicontrol"
31 #define DBG(fmt , args...) \
33 LOGD("[%s : %d] "fmt"\n",__func__,__LINE__,##args ); \
36 #define INFO(fmt , args...) \
38 LOGI("[%s : %d] "fmt"\n",__func__,__LINE__,##args ); \
41 #define WARN(fmt , args...) \
43 LOGI("[%s : %d] "fmt"\n",__func__,__LINE__,##args ); \
46 #define ERR(fmt , args...) \
48 LOGI("[%s : %d] "fmt"\n",__func__,__LINE__,##args ); \
51 #else /* MINICTRL_USE_DLOG */
52 #define DBG(fmt , args...) \
54 printf("[D][%s : %d] "fmt"\n", __func__,__LINE__,##args ); \
57 #define INFO(fmt , args...) \
59 printf("[I][%s : %d] "fmt"\n", __func__,__LINE__,##args ); \
62 #define WARN(fmt , args...) \
64 printf("[W][%s : %d] "fmt"\n", __func__,__LINE__,##args ); \
67 #define ERR(fmt , args...) \
69 printf("[E][%s : %d] "fmt"\n", __func__,__LINE__,##args ); \
72 #endif /* MINICTRL_USE_DLOG */
74 #endif /* _MINICTRL_LOG_H_ */