Skip to content

Commit a66935a

Browse files
rettichschnidifabiobaltieri
authored andcommitted
net: net_pkt: Embrace NET_PKT_DEBUG_ENABLED
This deduplicates the logic a tiny bit. Signed-off-by: Reto Schneider <[email protected]>
1 parent 217d9ac commit a66935a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

subsys/net/ip/net_pkt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ void net_pkt_allocs_foreach(net_pkt_allocs_cb_t cb, void *user_data)
255255
#define net_pkt_alloc_find(alloc_data, func_free, line_free) false
256256
#endif /* CONFIG_NET_DEBUG_NET_PKT_ALLOC */
257257

258-
#if defined(CONFIG_NET_DEBUG_NET_PKT_ALLOC) || \
259-
CONFIG_NET_PKT_LOG_LEVEL >= LOG_LEVEL_DBG
258+
#if defined(NET_PKT_DEBUG_ENABLED)
260259

261260
#define NET_FRAG_CHECK_IF_NOT_IN_USE(frag, ref) \
262261
do { \

0 commit comments

Comments
 (0)