RDK Documentation (Open Sourced RDK Components)
wifi_log.h
1
#ifndef WIFI_LOG_H
2
#define WIFI_LOG_H
3
4
#define WLAN_PATHMAX 128
5
6
typedef
struct
wifi_context
{
7
wifi_halConfig_t
conf;
8
char
ctrl_path[WLAN_PATHMAX];
9
}
wifi_context_t
;
10
11
#ifdef WITH_RDKLOGGER
12
13
#include "
rdk_debug.h
"
14
15
#define WIFI_LOG_MODULE "LOG.RDK.WIFIHAL"
16
17
#define WIFI_LOG_FATAL(...) do { RDK_LOG(RDK_LOG_FATAL, WIFI_LOG_MODULE, __VA_ARGS__); } while(0)
18
#define WIFI_LOG_ERROR(...) do { RDK_LOG(RDK_LOG_ERROR, WIFI_LOG_MODULE, __VA_ARGS__); } while(0)
19
#define WIFI_LOG_WARN(...) do { RDK_LOG(RDK_LOG_WARN, WIFI_LOG_MODULE, __VA_ARGS__); } while(0)
20
#define WIFI_LOG_NOTICE(...) do { RDK_LOG(RDK_LOG_NOTICE, WIFI_LOG_MODULE, __VA_ARGS__); } while(0)
21
#define WIFI_LOG_INFO(...) do { RDK_LOG(RDK_LOG_INFO, WIFI_LOG_MODULE, __VA_ARGS__); } while(0)
22
#define WIFI_LOG_DEBUG(...) do { RDK_LOG(RDK_LOG_DEBUG, WIFI_LOG_MODULE, __VA_ARGS__); } while(0)
23
#define WIFI_LOG_TRACE(...) do { RDK_LOG(RDK_LOG_TRACE1, WIFI_LOG_MODULE, __VA_ARGS__); } while(0)
24
25
#else
26
27
void
wifi_printf(
const
char
*level,
const
char
*format, ...) __attribute__((format(printf, 2, 3)));
28
29
#define WIFI_LOG_FATAL(format, ...) wifi_printf("FATAL", format, ## __VA_ARGS__ )
30
#define WIFI_LOG_ERROR(format, ...) wifi_printf("ERROR", format, ## __VA_ARGS__)
31
#define WIFI_LOG_WARN(format, ...) wifi_printf("WARN", format, ## __VA_ARGS__)
32
#define WIFI_LOG_NOTICE(format, ...) wifi_printf("NOTICE", format, ## __VA_ARGS__)
33
#define WIFI_LOG_INFO(format, ...) wifi_printf("INFO", format, ## __VA_ARGS__)
34
#define WIFI_LOG_DEBUG(format, ...) wifi_printf("DEBUG", format, ## __VA_ARGS__)
35
#define WIFI_LOG_TRACE(format, ...) wifi_printf("TRACE", format, ## __VA_ARGS__)
36
37
#endif
38
39
#endif
_wifi_halSettings
Definition:
wifi_common_hal.h:559
rdk_debug.h
wifi_context
Definition:
wifi_log.h:6
components
generic
wifi
src
wifi_log.h
Generated on Thu Feb 9 2023 06:32:35 for RDK Documentation (Open Sourced RDK Components) by
1.8.17