net: net_pkt: Embrace NET_PKT_DEBUG_ENABLED
This deduplicates the logic a tiny bit. Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This commit is contained in:
parent
217d9ac113
commit
a66935aea7
1 changed files with 1 additions and 2 deletions
|
|
@ -255,8 +255,7 @@ void net_pkt_allocs_foreach(net_pkt_allocs_cb_t cb, void *user_data)
|
||||||
#define net_pkt_alloc_find(alloc_data, func_free, line_free) false
|
#define net_pkt_alloc_find(alloc_data, func_free, line_free) false
|
||||||
#endif /* CONFIG_NET_DEBUG_NET_PKT_ALLOC */
|
#endif /* CONFIG_NET_DEBUG_NET_PKT_ALLOC */
|
||||||
|
|
||||||
#if defined(CONFIG_NET_DEBUG_NET_PKT_ALLOC) || \
|
#if defined(NET_PKT_DEBUG_ENABLED)
|
||||||
CONFIG_NET_PKT_LOG_LEVEL >= LOG_LEVEL_DBG
|
|
||||||
|
|
||||||
#define NET_FRAG_CHECK_IF_NOT_IN_USE(frag, ref) \
|
#define NET_FRAG_CHECK_IF_NOT_IN_USE(frag, ref) \
|
||||||
do { \
|
do { \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue