4 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Youngjoo Park <yjoo93.park@samsung.com>,
7 * Seungtaek Chung <seungtaek.chung@samsung.com>, Youngsub Ko <ys4610.ko@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the License);
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an AS IS BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
24 #ifndef __BADGE_LOG_DEF_H__
25 #define __BADGE_LOG_DEF_H__
33 #define LOG_TAG "BADGE"
35 #define DBG(fmt , args...) \
37 SECURE_LOGD("[%s : %d] "fmt"\n", __func__, __LINE__, ##args); \
40 #define INFO(fmt , args...) \
42 SECURE_LOGI("[%s : %d] "fmt"\n", __func__, __LINE__, ##args); \
45 #define WARN(fmt , args...) \
47 SECURE_LOGW("[%s : %d] "fmt"\n", __func__, __LINE__, ##args); \
50 #define ERR(fmt , args...) \
52 SECURE_LOGE("[%s : %d] "fmt"\n", __func__, __LINE__, ##args); \
55 #else /* BADGE_USE_DLOG */
59 #define DBG(fmt , args...) \
61 printf("[D][%s : %d] "fmt"\n", __func__, __LINE__, ##args); \
64 #define INFO(fmt , args...) \
66 printf("[I][%s : %d] "fmt"\n", __func__, __LINE__, ##args); \
69 #define WARN(fmt , args...) \
71 printf("[W][%s : %d] "fmt"\n", __func__, __LINE__, ##args); \
74 #define ERR(fmt , args...) \
76 printf("[E][%s : %d] "fmt"\n", __func__, __LINE__, ##args); \
79 #endif /* BADGE_USE_DLOG */
81 #endif /* __BADGE_LOG_DEF_H__ */