Skip to content

Commit 4a1d078

Browse files
MariuszSkamracarlescufi
authored andcommitted
net: buf: Fix using incorrect logging macro
As there is dedicated NET_BUF_SIMPLE_* logging macros set, NET_BUF_SIMPLE_DBG shall be used in this place instead. Signed-off-by: Mariusz Skamra <[email protected]>
1 parent 49fa151 commit 4a1d078

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

subsys/net/buf.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -435,15 +435,6 @@ void net_buf_simple_init_with_data(struct net_buf_simple *buf,
435435
buf->len = size;
436436
}
437437

438-
void net_buf_simple_reserve(struct net_buf_simple *buf, size_t reserve)
439-
{
440-
__ASSERT_NO_MSG(buf);
441-
__ASSERT_NO_MSG(buf->len == 0U);
442-
NET_BUF_DBG("buf %p reserve %zu", buf, reserve);
443-
444-
buf->data = buf->__buf + reserve;
445-
}
446-
447438
static struct k_spinlock net_buf_slist_lock;
448439

449440
void net_buf_slist_put(sys_slist_t *list, struct net_buf *buf)
@@ -756,6 +747,15 @@ size_t net_buf_append_bytes(struct net_buf *buf, size_t len,
756747
#define NET_BUF_SIMPLE_INFO(fmt, ...)
757748
#endif /* CONFIG_NET_BUF_SIMPLE_LOG */
758749

750+
void net_buf_simple_reserve(struct net_buf_simple *buf, size_t reserve)
751+
{
752+
__ASSERT_NO_MSG(buf);
753+
__ASSERT_NO_MSG(buf->len == 0U);
754+
NET_BUF_SIMPLE_DBG("buf %p reserve %zu", buf, reserve);
755+
756+
buf->data = buf->__buf + reserve;
757+
}
758+
759759
void net_buf_simple_clone(const struct net_buf_simple *original,
760760
struct net_buf_simple *clone)
761761
{

0 commit comments

Comments
 (0)