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 __MSG_MGR_DEBUG_H__
18 #define __MSG_MGR_DEBUG_H__
20 /*==================================================================================================
22 ==================================================================================================*/
23 #include <sys/types.h>
28 /*==================================================================================================
30 ==================================================================================================*/
32 #define LOG_TAG "MSG_MGR"
35 #define MSG_MGR_BEGIN()\
37 SLOGD(" BEGIN >>>> \n");\
40 #define MSG_MGR_END()\
42 SLOGD(" END <<<< \n");\
45 #define MSG_MGR_DEBUG(fmt, ...)\
47 SLOGD(fmt"\n", ##__VA_ARGS__);\
50 #define MSG_MGR_INFO(fmt, ...)\
52 SLOGI("* Info * " fmt "\n", ##__VA_ARGS__);\
55 #define MSG_MGR_WARN(fmt, ...)\
57 SLOGW("* Warning * " fmt "\n", ##__VA_ARGS__);\
60 #define MSG_MGR_ERR(fmt, ...)\
62 SLOGE("* Error * " fmt "\n", ##__VA_ARGS__);\
65 #define MSG_MGR_FATAL(fmt, ...)\
67 SLOGE(" ERROR << " fmt " >>\n", ##__VA_ARGS__);\
71 #define MSG_MGR_SEC_DEBUG(fmt, ...)\
73 SECURE_SLOGD(fmt"\n", ##__VA_ARGS__);\
76 #define MSG_MGR_SEC_INFO(fmt, ...)\
78 SECURE_SLOGI("* Info * " fmt"\n", ##__VA_ARGS__);\
81 #define MSG_MGR_SEC_ERR(fmt, ...)\
83 SECURE_LOG(LOG_ERROR, LOG_TAG, "* Error *" fmt "\n", ##__VA_ARGS__);\
87 #endif /*__MSG_MGR_DEBUG_H__ */