RDK Documentation (Open Sourced RDK Components)
dshallogger.h
1
/*
2
* If not stated otherwise in this file or this component's Licenses.txt file the
3
* following copyright and licenses apply:
4
*
5
* Copyright 2016 RDK Management
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*/
19
20
21
/**
22
* @defgroup devicesettings
23
* @{
24
* @defgroup hal
25
* @{
26
**/
27
28
29
#ifndef _DS_HAL_LOGGER_H_
30
#define _DS_HAL_LOGGER_H_
31
32
#include <stdio.h>
33
#include "dshalregisterlog.h"
34
35
int
ds_hal_log(
int
priority,
const
char
*format, ...);
36
37
#define INFO_LEVEL 0
38
#define WARN_LEVEL 1
39
#define ERROR_LEVEL 2
40
#define DEBUG_LEVEL 3
41
42
43
44
45
#define INT_INFO(FORMAT, ...) ds_hal_log(INFO_LEVEL ,FORMAT, ##__VA_ARGS__ )
46
#define INT_WARN(FORMAT, ...) ds_hal_log(WARN_LEVEL ,FORMAT, ##__VA_ARGS__ )
47
#define INT_ERROR(FORMAT, ...) ds_hal_log(ERROR_LEVEL ,FORMAT, ##__VA_ARGS__ )
48
#define INT_DEBUG(FORMAT, ...) ds_hal_log(DEBUG_LEVEL ,FORMAT, ##__VA_ARGS__ )
49
50
51
#endif
52
53
54
55
/** @} */
56
/** @} */
components
generic
devicesettings
hal
include
dshallogger.h
Generated on Thu Feb 9 2023 06:32:29 for RDK Documentation (Open Sourced RDK Components) by
1.8.17