net: context: Add debug print when context is freed

This is useful info to have when debugging.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2017-06-02 15:28:53 +03:00
commit 7812569e0f

View file

@ -400,6 +400,8 @@ int net_context_unref(struct net_context *context)
context->flags &= ~NET_CONTEXT_IN_USE; context->flags &= ~NET_CONTEXT_IN_USE;
NET_DBG("Context %p released", context);
k_sem_give(&contexts_lock); k_sem_give(&contexts_lock);
return 0; return 0;