4 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #pragma once // _SENSORCTL_LOG_H_
25 #define KNRM "\x1B[0m"
26 #define KRED "\x1B[31m"
27 #define KGRN "\x1B[32m"
28 #define KYEL "\x1B[33m"
29 #define KBLU "\x1B[34m"
30 #define KMAG "\x1B[35m"
31 #define KCYN "\x1B[36m"
32 #define KWHT "\x1B[37m"
33 #define RESET "\033[0m"
35 #define RED(str) KRED str RESET;
36 #define GRN(str) KGRN str RESET;
38 #define PRINT(fmt, args...) \
40 g_print(fmt, ##args); \
43 #define _E(fmt, args...) \
45 g_print("\x1B[31m" fmt "\033[0m", ##args); \
48 #define _I(fmt, args...) \
50 g_print("\x1B[32m" fmt "\033[0m", ##args); \