zephyr/tests/net/tcp/prj.conf
Tomasz Bursztyka a1aa08c288 net: ip: Improve logging by adding a dedicated sys_log level
Let's make net stack having its own level of debugging through sys_log.
It replaces NET_DEBUG by NET_LOG_ENABLED, which is then semantically
better: someone wanting to log the errors might want that not only for
debugging.

Along with it, CONFIG_NET_LOG_GLOBAL option is added, in order to enable
all available logging in network stack. It is disabled by default but
might be found useful when warning/errors need to be logged, so it is
then unnecessary to selectively enable by hand all CONFIG_NET_DEBUG_*
options.

It is possible, locally, to override CONFIG_SYS_LOG_NET_LEVEL by setting
the level one want to NET_SYS_LOG_LEVEL. This can be useful on samples
or tests.

Change-Id: I56a8f052340bc3a932229963cc69b39912093b88
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2017-01-02 10:03:20 +01:00

30 lines
708 B
Plaintext

CONFIG_NETWORKING=y
CONFIG_NET_L2_DUMMY=y
CONFIG_NET_TCP=y
CONFIG_NET_MAX_CONN=64
CONFIG_NET_CONN_CACHE=y
CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=y
CONFIG_NET_BUF=y
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_NET_NBUF_RX_COUNT=5
CONFIG_NET_NBUF_TX_COUNT=5
CONFIG_NET_NBUF_DATA_COUNT=10
CONFIG_NET_MAX_CONTEXTS=4
CONFIG_NET_LOG=y
CONFIG_SYS_LOG_SHOW_COLOR=y
CONFIG_RANDOM_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NET_IPV6_NO_ND=y
CONFIG_NET_IFACE_UNICAST_IPV6_ADDR_COUNT=3
CONFIG_NET_IFACE_UNICAST_IPV4_ADDR_COUNT=3
CONFIG_SYS_LOG_NET_LEVEL=4
CONFIG_NET_DEBUG_CORE=y
CONFIG_NET_DEBUG_TCP=y
CONFIG_NET_DEBUG_CONN=y
#CONFIG_NET_DEBUG_NET_BUF=y
CONFIG_NET_DEBUG_IF=y
CONFIG_NET_DEBUG_CONTEXT=y
#CONFIG_NET_DEBUG_L2=y