2 * Copyright (c) 2016 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 __DEBUG_HEAD__
18 #define __DEBUG_HEAD__
20 #define LOG_TAG "INPUT_DELEGATOR"
26 /***************************************************************************************************
27 * There are 9 log levels.
34 * SECURE_ERROR - SECURE_LOGE
35 * SECURE_WRAN - SECURE_LOGW
36 * SECURE_INFO - SECURE_LOGI
37 * SECURE_DEBUG - SECURE_LOGD
39 * NO_PRINT - If you want to see a log which has a NO_PRINT option, you can modify a log level.
41 *************************************************************************************************** */
43 #define PRINTFUNC_DLOG_ERROR(fmt, arg...) LOGE(fmt, ##arg)
44 #define PRINTFUNC_DLOG_WARN(fmt, arg...) LOGW(fmt, ##arg)
45 #define PRINTFUNC_DLOG_INFO(fmt, arg...) LOGI(fmt, ##arg)
46 #define PRINTFUNC_DLOG_DEBUG(fmt, arg...) LOGD(fmt, ##arg) //LOGD(fmt, ##arg)
48 #define PRINTFUNC_SECURE_ERROR(fmt, arg...) SECURE_LOGE(fmt, ##arg)
49 #define PRINTFUNC_SECURE_WARN(fmt, arg...) SECURE_LOGW(fmt, ##arg)
50 #define PRINTFUNC_SECURE_INFO(fmt, arg...) SECURE_LOGI(fmt, ##arg)
51 #define PRINTFUNC_SECURE_DEBUG(fmt, arg...) SECURE_LOGD(fmt, ##arg)
53 #define PRINTFUNC_NO_PRINT(fmt, arg...) LOGE(fmt, ##arg)
55 #define PRINTFUNC(level, fmt, arg...) PRINTFUNC_##level (fmt, ##arg)
57 /*****************************************************************************************************/