Remove network specific default and max log level setting and start to use the zephyr logging values for those. Remove LOG_MODULE_REGISTER() from net_core.h and place the calls into .c files. This is done in order to avoid weird compiler errors in some cases and to make the code look similar as other subsystems. Fixes #11343 Fixes #11659 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
22 lines
474 B
C
22 lines
474 B
C
/*
|
|
* Copyright (c) 2018 Linaro Limited.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <logging/log.h>
|
|
LOG_MODULE_REGISTER(net_socket_offload, CONFIG_NET_SOCKETS_LOG_LEVEL);
|
|
|
|
#include <net/socket_offload.h>
|
|
|
|
/* Only one provider may register socket operations upon boot. */
|
|
const struct socket_offload *socket_ops;
|
|
|
|
void socket_offload_register(const struct socket_offload *ops)
|
|
{
|
|
__ASSERT_NO_MSG(ops);
|
|
__ASSERT_NO_MSG(socket_ops == NULL);
|
|
|
|
socket_ops = ops;
|
|
}
|