Commit c2cdbbaf authored by Gil Pitney's avatar Gil Pitney Committed by Jukka Rissanen
Browse files

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: default avatarGil Pitney <gil.pitney@linaro.org>
parent 7520bb21
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
/**
 * 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_ */
+3 −0
Original line number Diff line number Diff line
@@ -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>
+4 −6
Original line number Diff line number Diff line
@@ -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>

+0 −1
Original line number Diff line number Diff line
@@ -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
Loading