We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f73a3b8 commit ac6ec7fCopy full SHA for ac6ec7f
subsys/net/lib/sockets/Kconfig
@@ -25,4 +25,11 @@ config NET_SOCKETS_POSIX_NAMES
25
attention, as in POSIX it closes any file descriptor, while with this
26
option enaled, it will still apply only to sockets.
27
28
+config NET_DEBUG_SOCKETS
29
+ bool "Debug BSD Sockets like API calls"
30
+ default n
31
+ help
32
+ Enables logging for sockets code. (Logging level is defined by
33
+ SYS_LOG_NET_LEVEL setting).
34
+
35
endif # NET_SOCKETS
subsys/net/lib/sockets/sockets.c
@@ -4,6 +4,11 @@
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
+#if defined(CONFIG_NET_DEBUG_SOCKETS)
8
+#define SYS_LOG_DOMAIN "net/sock"
9
+#define NET_LOG_ENABLED 1
10
+#endif
11
12
#include <net/net_context.h>
13
#include <net/net_pkt.h>
14
#include <net/socket.h>
0 commit comments