net: buf: Use buf->pool instead of now removed buf->free

Tiny debug message fix.

Change-Id: I464ff28d55b946a2e9ba4a0f9d88fbedd7ccef57
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2016-12-16 13:19:05 +01:00
parent afab2530c9
commit f991b82209

View file

@ -220,8 +220,8 @@ void net_buf_unref(struct net_buf *buf)
return;
}
#endif
NET_BUF_DBG("buf %p ref %u fifo %p frags %p", buf, buf->ref,
buf->free, buf->frags);
NET_BUF_DBG("buf %p ref %u pool %p frags %p", buf, buf->ref,
buf->pool, buf->frags);
if (--buf->ref > 0) {
return;
@ -243,7 +243,8 @@ struct net_buf *net_buf_ref(struct net_buf *buf)
{
NET_BUF_ASSERT(buf);
NET_BUF_DBG("buf %p (old) ref %u fifo %p", buf, buf->ref, buf->free);
NET_BUF_DBG("buf %p (old) ref %u pool %p",
buf, buf->ref, buf->pool);
buf->ref++;
return buf;
}