Commit 88ee2bee authored by Jordan Yates's avatar Jordan Yates Committed by Anas Nashif
Browse files

net: buf: increase log level of timeout ignore



Notifying users that the supplied timeout is being ignored is worthy of
a higher log level than debug. Any such usage should be changed at the
application level.

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent 74972e69
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -273,7 +273,7 @@ struct net_buf *net_buf_alloc_len(struct net_buf_pool *pool, size_t size,

	if (!K_TIMEOUT_EQ(timeout, K_NO_WAIT) &&
	    k_current_get() == k_work_queue_thread_get(&k_sys_work_q)) {
		LOG_DBG("Timeout discarded. No blocking in syswq");
		LOG_WRN("Timeout discarded. No blocking in syswq");
		timeout = K_NO_WAIT;
	}