net: sockets: Get socket offload to build after net logging overhaul.
Also, defines one LOG_MODULE_NAME for the simplelink WiFi driver, and uses the same name for all files in this driver (module). Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
This commit is contained in:
parent
7520bb21bc
commit
c2cdbbafd7
6 changed files with 34 additions and 11 deletions
|
@ -4,10 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define LOG_MODULE_NAME wifi_simplelink
|
||||
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
|
||||
|
||||
#include <logging/log.h>
|
||||
#include "simplelink_log.h"
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
|
||||
#include <zephyr.h>
|
||||
|
|
23
drivers/wifi/simplelink/simplelink_log.h
Normal file
23
drivers/wifi/simplelink/simplelink_log.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* Copyright (c) 2018 Linaro Limited.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_
|
||||
#define ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define LOG_MODULE_NAME wifi_simplelink
|
||||
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
|
||||
|
||||
#include <logging/log.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_ */
|
|
@ -4,6 +4,9 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "simplelink_log.h"
|
||||
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
|
||||
|
||||
#include <zephyr.h>
|
||||
/* Define sockaddr, etc, before simplelink.h */
|
||||
#include <net/socket_offload.h>
|
||||
|
|
|
@ -5,14 +5,12 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define LOG_MODULE_NAME wifi_simplelink_support
|
||||
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "simplelink_log.h"
|
||||
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
|
|
@ -19,5 +19,4 @@ CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
|
|||
CONFIG_NET_LOG=y
|
||||
CONFIG_WIFI_LOG_LEVEL_DBG=y
|
||||
CONFIG_DEBUG=y
|
||||
#CONFIG_SYS_LOG=y
|
||||
#CONFIG_ASSERT=y
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define LOG_MODULE_NAME net_socket_offload
|
||||
#define NET_LOG_LEVEL CONFIG_NET_SOCKETS_LOG_LEVEL
|
||||
|
||||
#include <net/socket_offload.h>
|
||||
|
||||
/* Only one provider may register socket operations upon boot. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue