net: Add debugging option for network utilities
Various network utility routines can debug print after this. The Kconfig option is called CONFIG_NETWORK_IP_STACK_DEBUG_UTILS Change-Id: I8384f974bd3c4965a6ef401bff8060389fab51ad Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
1a9421886e
commit
0d5e829da6
2 changed files with 12 additions and 0 deletions
|
@ -61,6 +61,13 @@ config NETWORK_IP_STACK_DEBUG_CORE
|
|||
help
|
||||
Enables core network stack code part to output debug messages
|
||||
|
||||
config NETWORK_IP_STACK_DEBUG_UTILS
|
||||
bool "Debug utility functions in IP stack"
|
||||
depends on NET_YAIP
|
||||
default n
|
||||
help
|
||||
Enables utility functions to output debug messages
|
||||
|
||||
config NETWORK_IP_STACK_DEBUG_IF
|
||||
bool "Debug network interface code"
|
||||
depends on NET_YAIP
|
||||
|
|
|
@ -19,6 +19,11 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_NETWORK_IP_STACK_DEBUG_UTILS)
|
||||
#define SYS_LOG_DOMAIN "net/utils"
|
||||
#define NET_DEBUG 1
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue