Fix source file permissions in the project
[platform/core/security/tef-simulator.git] / ssflib / dep / swdss / include / slog.h
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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. 
15  */
16 #ifndef _SWD_LOG_H_
17 #define _SWD_LOG_H_
18
19 #define LOG_TAG "SWDSS_LIB"
20
21 #include <stdio.h>
22 #define THE_PRINTF(fmt, ARG...) printf(fmt"\n", ##ARG)
23 #define SLOGV(FMT, ARG ...)     THE_PRINTF("[VBOSE][%s]"FMT, LOG_TAG, ##ARG)
24 #define SLOGD(FMT, ARG ...)     THE_PRINTF("[DEBUG][%s]"FMT, LOG_TAG, ##ARG)
25 #define SLOGI(FMT, ARG ...)     THE_PRINTF("[INFO] [%s]"FMT, LOG_TAG, ##ARG)
26 #define SLOGW(FMT, ARG ...)     THE_PRINTF("[WARN] [%s]"FMT, LOG_TAG, ##ARG)
27 #define SLOGE(FMT, ARG ...)     THE_PRINTF("[ERROR][%s]"FMT, LOG_TAG, ##ARG)
28 #define SLOGF(FMT, ARG ...)     THE_PRINTF("[FATAL][%s]"FMT, LOG_TAG, ##ARG)
29
30 #endif
31